code: def _get_package():
      """Workaround for missing ``__package__`` in Python 3.2"""
      if "__package__" in globals() and __package__ is not None:
          return __package__
      return __name__.split(".", 1)[0]
  
file_path: dipy/dipy/tests/scriptrunner.py
imports: import sys
  import os
  from os.path import dirname, join, isfile, isdir, realpath, pathsep
  from subprocess import Popen, PIPE
label_desc: Use image node_id 1 for calling a global function with example usage: _get_package() and returns: __name__, __package__