code: def _abs_path(module_context, path):
      if os.path.isabs(path):
          return path
  
      module_path = module_context.py__file__()
      if module_path is None:
          # In this case we have no idea where we actually are in the file
          # system.
          return None
  
      base_dir = os.path.dirname(module_path)
      path = force_unicode(path)
      return os.path.abspath(os.path.join(base_dir, path))
  
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 1 for calling a global function with example usage: _abs_path(module_context, path) and returns: os, path, None