How to Solve NameError: name 'some_function' is not defined -- .
Solution: Import the 'some_function' module
To Solve the error, add the following line to the top of your code.
from ..some_package import some_function
For more information:
Python . some_function