code: def enter_Argument(self, node, key, parent, path, ancestors):
      argument_of = ancestors[-1]
  
      if isinstance(argument_of, ast.Field):
          field_def = self.context.get_field_def()
          if not field_def:
              return
  
          field_arg_def = field_def.args.get(node.name.value)
  
          if not field_arg_def:
              parent_type = self.context.get_parent_type()
              assert parent_type
              self.context.report_error(
                  GraphQLError(
                      _unknown_arg_message(
                          node.name.value,
                          argument_of.name.value,
                          parent_type.name,
                          suggestion_list(
                              node.name.value,
                              (
                                  arg_name
                                  for arg_name in field_def.args.keys()
                              ),
                          ),
                      ),
                      [node],
                  )
              )
  
      elif isinstance(argument_of, ast.Directive):
          directive = self.context.get_directive()
          if not directive:
              return
  
          directive_arg_def = directive.args.get(node.name.value)
  
          if not directive_arg_def:
              self.context.report_error(
                  GraphQLError(
                      _unknown_directive_arg_message(
                          node.name.value,
                          directive.name,
                          suggestion_list(
                              node.name.value,
                              (
                                  arg_name
                                  for arg_name in directive.args.keys()
                              ),
                          ),
                      ),
                      [node],
                  )
              )
  
file_path: wandb/wandb/vendor/graphql-core-1.1/wandb_graphql/validation/rules/known_argument_names.py
imports: from ...error import GraphQLError
  from ...language import ast
  from ...utils.quoted_or_list import quoted_or_list
  from ...utils.suggestion_list import suggestion_list
  from .base import ValidationRule
label_desc: Use image node_id 1 for calling the KnownArgumentNames obj's underlying member method code with example usage: obj.enter_Argument(node, key, parent, path, ancestors) without return types