Different ways to call an imported function from a separate py file, returns error
Your function seems to be in a class (guessed from the self parameter).

Method using self are meant to be used on instances.

You should either instanciate the class it belongs to in order to have an instance on which to call the method, or make the function static, or make the function a module function (out of a class definition).

Also the package init file should be named __init__.py, not __innit__.py.