code: def field(field, **args):
      if isinstance(field, GraphQLField):
          return DSLField(field).args(**args)
      elif isinstance(field, DSLField):
          return field
  
      raise Exception(
          'Received incompatible query field: "{}".'.format(field)
      )
  
imports: from collections.abc import Iterable
  import decimal
  from functools import partial
  from wandb_graphql.language import ast
  from wandb_graphql.language.printer import print_ast
  from wandb_graphql.type import GraphQLField, GraphQLList, GraphQLNonNull, GraphQLEnumType
  from .utils import to_camel_case
label_desc: Use image node_id 3 for calling a global function with example usage: field(field) and returns: DSLField, field