code: def effective_type(var_type, var_def):
      if not var_def.default_value or isinstance(
          var_type, GraphQLNonNull
      ):
          return var_type
  
      return GraphQLNonNull(var_type)
  
file_path: wandb/wandb/vendor/graphql-core-1.1/wandb_graphql/validation/rules/variables_in_allowed_position.py
imports: from ...error import GraphQLError
  from ...type.definition import GraphQLNonNull
  from ...utils.type_comparators import is_type_sub_type_of
  from ...utils.type_from_ast import type_from_ast
  from .base import ValidationRule
label_desc: Use image node_id 5 for calling the VariablesInAllowedPosition obj's underlying member method code with example usage: obj.effective_type(var_type, var_def) and returns: GraphQLNonNull, var_type