code: def get_init(dirname):
      """Get __init__ file path for module directory
  
      Parameters
      ----------
      dirname : str
          Find the __init__ file in directory `dirname`
  
      Returns
      -------
      init_path : str
          Path to __init__ file
      """
      fbase = os.path.join(dirname, "__init__")
      for ext in [".py", ".pyw"]:
          fname = fbase + ext
          if os.path.isfile(fname):
              return fname
  
imports: from __future__ import print_function
  import imp
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: get_init(dirname) and returns: fname