code: def get_parent_dir(module):
      return os.path.abspath(
          os.path.join(os.path.dirname(module.__file__), "..")
      )
  
imports: import os
  import importlib
label_desc: Use image node_id 1 for calling a global function with example usage: get_parent_dir(module) and returns: os