How to simulate heavy workloads on a JupyterLab notebook?

The servers at my university are facing some issues with ‘residual data’ left behind by jupyter notebooks that are run on the JupyterLab at my university

I would like to simulate and subsequently monitor the usage of a resource heavy jupyter notebook

To do this, i would like to ask for your suggestions in simulating heavy workloads on a jupyter notebook

Can you suggest any possible scripts which will make the jupyter notebook consume a lot of server resources ?