import os
import sys
module_path = os.path.abspath(os.path.join('..'))
if module_path not in sys.path:
    sys.path.append(module_path)
import local function from a module housed in another directory with relative imports in jupyter notebook using python3