code: def enter_VariableDefinition(
      self, node, key, parent, path, ancestors
  ):
      name = node.variable.name.value
      default_value = node.default_value
      type = self.context.get_input_type()
  
      if isinstance(type, GraphQLNonNull) and default_value:
          self.context.report_error(
              GraphQLError(
                  self.default_for_non_null_arg_message(
                      name, type, type.of_type
                  ),
                  [default_value],
              )
          )
  
      if type and default_value:
          errors = is_valid_literal_value(type, default_value)
          if errors:
              self.context.report_error(
                  GraphQLError(
                      self.bad_value_for_default_arg_message(
                          name, type, print_ast(default_value), errors
                      ),
                      [default_value],
                  )
              )
      return False
  
file_path: wandb/wandb/vendor/graphql-core-1.1/wandb_graphql/validation/rules/default_values_of_correct_type.py
imports: from ...error import GraphQLError
  from ...language.printer import print_ast
  from ...type.definition import GraphQLNonNull
  from ...utils.is_valid_literal_value import is_valid_literal_value
  from .base import ValidationRule
label_desc: Use image node_id 1 for calling the DefaultValuesOfCorrectType obj's underlying member method code with example usage: obj.enter_VariableDefinition(node, key, parent, path, ancestors) and returns: False