How to Solve NameError: name 'function_name' is not defined -- pakage_name

Solution: Import the 'function_name' module

To Solve the error, add the following line to the top of your code.

from pakage_name.module_name import function_name

 

For more information:
Python pakage_name function_name