code: def __init__(
      self,
      schema=None,
      introspection=None,
      type_def=None,
      transport=None,
      fetch_schema_from_transport=False,
      retries=0,
  ):
      assert not (
          type_def and introspection
      ), "Cant provide introspection type definition at the same time"
      if transport and fetch_schema_from_transport:
          assert (
              not schema
          ), "Cant fetch the schema from transport if is already provided"
          introspection = transport.execute(
              parse(introspection_query)
          ).data
      if introspection:
          assert (
              not schema
          ), "Cant provide introspection and schema at the same time"
          schema = build_client_schema(introspection)
      elif type_def:
          assert (
              not schema
          ), "Cant provide Type definition and schema at the same time"
          type_def_ast = parse(type_def)
          schema = build_ast_schema(type_def_ast)
      elif schema and not transport:
          transport = LocalSchemaTransport(schema)
  
      self.schema = schema
      self.introspection = introspection
      self.transport = transport
      self.retries = retries
  
file_path: wandb/wandb/vendor/gql-0.2.0/wandb_gql/client.py
imports: import logging
  from wandb_graphql import parse, introspection_query, build_ast_schema, build_client_schema
  from wandb_graphql.validation import validate
  from .transport.local_schema import LocalSchemaTransport
label_desc: Use image node_id 1 to create a new Client object from inherited base classes: object with example: obj = Client(schema, introspection, type_def, transport, fetch_schema_from_transport, retries)