let's say that I have a python file for some task written in OOP. some classes in my code use libraries such as pandas, csv ... Is it ok to import these libraries just before the main() function? Technically it works but I'm not sure if this is the right way
class A
class B
class C
import csv
import pandas
def main ():
#pass
if __name__ == '__main__':
main()