code: def _get_parent_dir_with_file(path, filename):
      for parent in traverse_parents(path):
          if os.path.isfile(os.path.join(parent, filename)):
              return parent
      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 7 for calling a global function with example usage: _get_parent_dir_with_file(path, filename) and returns: None, parent