class_docstr: Parser engine.
  
  A Parser instance contains state pertaining to the current token
  sequence, and should not be used concurrently by different threads
  to parse separate token sequences.
  
  See python/tokenize.py for how to get input tokens by a string.
  
  When a syntax error occurs, error_recovery() is called.
class_docstr_tok: ["Parser","engine",".","A","Parser","instance","contains","state","pertaining","to","the","current","token","sequence",",","and","should","not","be","used","concurrently","by","different","threads","to","parse","separate","token","sequences",".","See","python\/tokenize.py","for","how","to","get","input","tokens","by","a","string",".","When","a","syntax","error","occurs",",","error_recovery","(",")","is","called","."]
code: def _pop(self):
      tos = self.stack.pop()
      # If there's exactly one child, return that child instead of
      # creating a new node.  We still create expr_stmt and
      # file_input though, because a lot of Jedi depends on its
      # logic.
      if len(tos.nodes) == 1:
          new_node = tos.nodes[0]
      else:
          new_node = self.convert_node(tos.dfa.from_rule, tos.nodes)
  
      self.stack[-1].nodes.append(new_node)
  
imports: from parso import tree
  from parso.pgen2.generator import ReservedString
label_desc: Use image node_id 7 for calling the BaseParser obj's underlying member method code with example usage: obj._pop() without return types