code: def get_base_type(type):
      if isinstance(type, (GraphQLList, GraphQLNonNull)):
          return get_base_type(type.of_type)
      return type
  
imports: import functools
  from wandb_promise import Promise, is_thenable, promise_for_dict
  from ...pyutils.cached_property import cached_property
  from ...pyutils.default_ordered_dict import DefaultOrderedDict
  from ...type import GraphQLInterfaceType, GraphQLList, GraphQLNonNull, GraphQLObjectType, GraphQLUnionType
  from ..base import ResolveInfo, Undefined, collect_fields, get_field_def
  from ..values import get_argument_values
  from ...error import GraphQLError
label_desc: Use image node_id 1 for calling a global function with example usage: get_base_type(type) and returns: type, get_base_type