Installlation of library inside Sagemaker jupyterlab instance

I am trying to create Lambda function automation that will communicate with Sagemaker and install required pip installation inside jupyter instance kernel
Any help will be appreciated that how can it be done through python ?