class_docstr: This class is used to parse a Python file, it then divides them into a
  class structure of different scopes.
  
  :param pgen_grammar: The grammar object of pgen2. Loaded by load_grammar.
class_docstr_tok: ["This","class","is","used","to","parse","a","Python","file",",","it","then","divides","them","into","a","class","structure","of","different","scopes",".",":","param","pgen_grammar",":","The","grammar","object","of","pgen2",".","Loaded","by","load_grammar","."]
code: def convert_leaf(self, type, value, prefix, start_pos):
      # print('leaf', repr(value), token.tok_name[type])
      if type == NAME:
          if value in self._pgen_grammar.reserved_syntax_strings:
              return tree.Keyword(value, start_pos, prefix)
          else:
              return tree.Name(value, start_pos, prefix)
  
      return self._leaf_map.get(type, tree.Operator)(
          value, start_pos, prefix
      )
  
file_path: catboost/contrib/python/parso/py3/parso/python/parser.py
imports: from parso.python import tree
  from parso.python.token import PythonTokenTypes
  from parso.parser import BaseParser
label_desc: Use image node_id 4 for calling the Parser obj's underlying member method code with example usage: obj.convert_leaf(type, value, prefix, start_pos) and returns: self, tree, tree