code: def get_parent_scope(node, include_flows=False):
      """
      Returns the underlying scope.
      """
      scope = node.parent
      while scope is not None:
          if include_flows and isinstance(scope, tree.Flow):
              return scope
          if is_scope(scope):
              break
          scope = scope.parent
      return scope
  
file_path: catboost/contrib/python/jedi/py3/jedi/parser_utils.py
imports: import re
  import textwrap
  from inspect import cleandoc
  from parso.python import tree
  from parso.cache import parser_cache
  from jedi._compatibility import literal_eval, force_unicode
label_desc: Use image node_id 13 for calling a global function with example usage: get_parent_scope(node, include_flows) and returns: scope, scope