code: def local_module_dir(module_name):
      """Get local module directory if running in development dir, else None"""
      mod = __import__(module_name)
      containing_path = dirname(dirname(realpath(mod.__file__)))
      if containing_path == realpath(os.getcwd()):
          return containing_path
      return None
  
file_path: nibabel/nibabel/tests/scriptrunner.py
imports: import os
  import sys
  from os.path import dirname, isdir, isfile
  from os.path import join
  from os.path import pathsep, realpath
  from subprocess import PIPE, Popen
label_desc: Use image node_id 2 for calling a global function with example usage: local_module_dir(module_name) and returns: None, containing_path