code: def get_statement_of_position(node, pos):
      for c in node.children:
          if c.start_pos <= pos <= c.end_pos:
              if c.type not in (
                  "decorated",
                  "simple_stmt",
                  "suite",
                  "async_stmt",
                  "async_funcdef",
              ) and not isinstance(c, (tree.Flow, tree.ClassOrFunc)):
                  return c
              else:
                  try:
                      return get_statement_of_position(c, pos)
                  except AttributeError:
                      pass  # Must be a non-scope
      return None
  
file_path: catboost/contrib/python/jedi/py2/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 5 for calling a global function with example usage: get_statement_of_position(node, pos) and returns: None, c, get_statement_of_position