code: def import_from_path(path):
      base_path, filename = os.path.split(path)
      module_name = (
          filename[:-3] if filename.endswith(".py") else filename
      )
      with temporarily_add_sys_path(base_path):
          module = importlib.import_module(module_name)
      return module
  
file_path: jiant/jiant/utils/python/filesystem.py
imports: import os
  import importlib
  import sys
  from contextlib import contextmanager
label_desc: Use image node_id 7 for calling a global function with example usage: import_from_path(path) and returns: module