code: def kind(cls, type, *_):
      for klass, kind in cls._kinds:
          if isinstance(type, klass):
              return kind
  
      raise Exception("Unknown kind of type: {}".format(type))
  
file_path: wandb/wandb/vendor/graphql-core-1.1/wandb_graphql/type/introspection.py
imports: from collections import OrderedDict, namedtuple
  from ..language.printer import print_ast
  from ..utils.ast_from_value import ast_from_value
  from .definition import GraphQLArgument, GraphQLEnumType, GraphQLEnumValue, GraphQLField, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLList, GraphQLNonNull, GraphQLObjectType, GraphQLScalarType, GraphQLUnionType
  from .directives import DirectiveLocation
  from .scalars import GraphQLBoolean, GraphQLString
label_desc: Use image node_id 1 for calling the TypeFieldResolvers obj's underlying member method code with example usage: obj.kind(cls, type) and returns: kind