code: def dotted_path_in_sys_path(sys_path, module_path):
      """
      Returns the dotted path inside a sys.path as a list of names.
      """
      # First remove the suffix.
      for suffix in all_suffixes():
          if module_path.endswith(suffix):
              module_path = module_path[: -len(suffix)]
          break
      else:
          # There should always be a suffix in a valid Python file on the path.
          return None
  
      if module_path.startswith(os.path.sep):
          # The paths in sys.path most of the times don't end with a slash.
          module_path = module_path[1:]
  
      for p in sys_path:
          if module_path.startswith(p):
              rest = module_path[len(p) :]
              if rest:
                  split = rest.split(os.path.sep)
                  for string in split:
                      if not string or "." in string:
                          return None
                  return split
  
      return None
  
file_path: catboost/contrib/python/jedi/py3/jedi/evaluate/sys_path.py
imports: import os
  from jedi._compatibility import unicode, force_unicode, all_suffixes
  from jedi.evaluate.cache import evaluator_method_cache
  from jedi.evaluate.base_context import ContextualizedNode
  from jedi.evaluate.helpers import is_string
  from jedi.common.utils import traverse_parents
  from jedi.parser_utils import get_cached_code_lines
  from jedi import settings
  from jedi import debug
label_desc: Use image node_id 9 for calling a global function with example usage: dotted_path_in_sys_path(sys_path, module_path) and returns: None, None, split, None