code: def read_import(file, *targets):
      "import the targets; targets are name strings"
      import re, os, sys
  
      _dir, file = os.path.split(file)
      file = re.sub(r"\.py*.$", "", file)  # XXX: strip .py* extension
      curdir = os.path.abspath(os.curdir)
      sys.path.append(".")
      results = []
      globals = {}
      try:
          if _dir:
              os.chdir(_dir)
          if len(targets):
              for target in targets:
                  code = "from {0} import {1} as result".format(
                      file, target
                  )
                  code = compile(code, "<string>", "exec")
                  try:
                      exec(code, globals)
                  except ModuleNotFoundError:
                      raise RuntimeError(
                          "Module: {0} not found".format(file)
                      )
                  except ImportError:
                      globals["result"] = None  # XXX: or throw error?
                  results.append(globals["result"])
          else:
              code = "import {0} as result".format(file)
              code = compile(code, "<string>", "exec")
              try:
                  exec(code, globals)
              except ModuleNotFoundError:
                  raise RuntimeError(
                      "Module: {0} not found".format(file)
                  )
              except ImportError:
                  globals["result"] = None  # XXX: or throw error?
              results.append(globals["result"])
      except FileNotFoundError:
          raise RuntimeError("File: {0} not found".format(file))
      finally:
          if _dir:
              os.chdir(curdir)
          sys.path.pop()
      if not len(results):
          return None
      return results[-1] if (len(results) == 1) else results
  
imports: from mystic.tools import list_or_tuple_or_ndarray
  from mystic.tools import isNull
  import sys
label_desc: Use image node_id 15 for calling a global function with example usage: read_import(file) and returns: unknown, None