I am working on a small library and I need to know can I import modules like numpy, sklearn and etc. Using functions. For example:
def ml(): import numpy