you achieve this by doing the imports inside the functions. It will be imported once you call the function.