code: def get_fragment(self, name):
      fragments = self._fragments
      if fragments is None:
          self._fragments = fragments = {}
          for statement in self.get_ast().definitions:
              if isinstance(statement, FragmentDefinition):
                  fragments[statement.name.value] = statement
      return fragments.get(name)
  
imports: from ..language.ast import FragmentDefinition, FragmentSpread, OperationDefinition
  from ..language.visitor import ParallelVisitor, TypeInfoVisitor, Visitor, visit
  from ..type import GraphQLSchema
  from ..utils.type_info import TypeInfo
  from .rules import specified_rules
label_desc: Use image node_id 10 for calling the ValidationContext obj's underlying member method code with example usage: obj.get_fragment(name) and returns: fragments