code: def find_mod(module_name):
      """Find module `module_name` on sys.path
  
      Return the path to module `module_name`. If `module_name` refers to
      a module directory then return path to __init__ file. Return full
      path of module or None if module is missing or does not have .py or .pyw
      extension. We are not interested in running bytecode.
  
      Parameters
      ----------
      module_name : str
  
      Returns
      -------
      modulepath : str
          Path to module `module_name`.
      """
      parts = module_name.split(".")
      basepath = find_module(parts[0])
      for submodname in parts[1:]:
          basepath = find_module(submodname, [basepath])
      if basepath and os.path.isdir(basepath):
          basepath = get_init(basepath)
      return basepath
  
imports: from __future__ import print_function
  import imp
  import os
label_desc: Use image node_id 3 for calling a global function with example usage: find_mod(module_name) and returns: basepath