code: def get_module_info(
      evaluator, sys_path=None, full_name=None, **kwargs
  ):
      if sys_path is not None:
          sys.path, temp = sys_path, sys.path
      try:
          module_file, module_path, is_pkg = find_module(
              full_name=full_name, **kwargs
          )
      except ImportError:
          return None, None, None
      finally:
          if sys_path is not None:
              sys.path = temp
  
      code = None
      if is_pkg:
          # In this case, we don't have a file yet. Search for the
          # __init__ file.
          if module_path.endswith((".zip", ".egg")):
              code = module_file.loader.get_source(full_name)
          else:
              module_path = _get_init_path(module_path)
      elif module_file:
          if module_path.endswith((".zip", ".egg")):
              # Unfortunately we are reading unicode here already, not byes.
              # It seems however hard to get bytes, because the zip importer
              # logic just unpacks the zip file and returns a file descriptor
              # that we cannot as easily access. Therefore we just read it as
              # a string.
              code = module_file.read()
          else:
              # Read the code with a binary file, because the binary file
              # might not be proper unicode. This is handled by the parser
              # wrapper.
              with open(module_path, "rb") as f:
                  code = f.read()
  
          module_file.close()
  
      return code, cast_path(module_path), is_pkg
  
file_path: catboost/contrib/python/jedi/py3/jedi/evaluate/compiled/subprocess/functions.py
imports: import sys
  import os
  from jedi._compatibility import find_module, cast_path, force_unicode, iter_modules, all_suffixes, print_to_stderr
  from jedi.evaluate.compiled import access
  from jedi import parser_utils
label_desc: Use image node_id 6 for calling a global function with example usage: get_module_info(evaluator, sys_path, full_name) and returns: code,  cast_path,  is_pkg, None,  None,  None