code: def get_parent_type(self):
      if self._parent_type_stack:
          return self._parent_type_stack[-1]
  
imports: from ..language import visitor_meta
  from ..type.definition import GraphQLInputObjectType, GraphQLList, get_named_type, get_nullable_type, is_composite_type
  from .get_field_def import get_field_def
  from .type_from_ast import type_from_ast
label_desc: Use image node_id 3 for calling the TypeInfo obj's underlying member method code with example usage: obj.get_parent_type() and returns: self