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