use import to import functions python code example
Example 1: how to import python
import random
from os import name, system
import time as t
Example 2: python reference parent module
$ cat function/bbb.py
import os
import sys
root_folder = os.path.abspath(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(root_folder)
from common.aaa import say_hi
say_hi()