code: def enter_FragmentDefinition(
      self, node, key, parent, path, ancestors
  ):
      type = self.context.get_type()
  
      if type and not is_composite_type(type):
          self.context.report_error(
              GraphQLError(
                  self.fragment_on_non_composite_error_message(
                      node.name.value, print_ast(node.type_condition)
                  ),
                  [node.type_condition],
              )
          )
  
file_path: wandb/wandb/vendor/graphql-core-1.1/wandb_graphql/validation/rules/fragments_on_composite_types.py
imports: from ...error import GraphQLError
  from ...language.printer import print_ast
  from ...type.definition import is_composite_type
  from .base import ValidationRule
label_desc: Use image node_id 2 for calling the FragmentsOnCompositeTypes obj's underlying member method code with example usage: obj.enter_FragmentDefinition(node, key, parent, path, ancestors) without return types