code: def input_fields(type, *_):
      if isinstance(type, GraphQLInputObjectType):
          return input_fields_to_list(type.fields)
  
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 6 for calling the TypeFieldResolvers obj's underlying member method code with example usage: obj.input_fields(type) and returns: input_fields_to_list