code: def enter_Document(self, node, key, parent, path, ancestors):
      self.operation_count = sum(
          1
          for definition in node.definitions
          if isinstance(definition, ast.OperationDefinition)
      )
  
file_path: wandb/wandb/vendor/graphql-core-1.1/wandb_graphql/validation/rules/lone_anonymous_operation.py
imports: from ...error import GraphQLError
  from ...language import ast
  from .base import ValidationRule
label_desc: Use image node_id 2 for calling the LoneAnonymousOperation obj's underlying member method code with example usage: obj.enter_Document(node, key, parent, path, ancestors) without return types