code: def leave_Document(self, node, key, parent, path, ancestors):
      fragment_names_used = set()
  
      for operation in self.operation_definitions:
          fragments = self.context.get_recursively_referenced_fragments(
              operation
          )
          for fragment in fragments:
              fragment_names_used.add(fragment.name.value)
  
      for fragment_definition in self.fragment_definitions:
          if fragment_definition.name.value not in fragment_names_used:
              self.context.report_error(
                  GraphQLError(
                      self.unused_fragment_message(
                          fragment_definition.name.value
                      ),
                      [fragment_definition],
                  )
              )
  
file_path: wandb/wandb/vendor/graphql-core-1.1/wandb_graphql/validation/rules/no_unused_fragments.py
imports: from ...error import GraphQLError
  from .base import ValidationRule
label_desc: Use image node_id 4 for calling the NoUnusedFragments obj's underlying member method code with example usage: obj.leave_Document(node, key, parent, path, ancestors) without return types