code: def typedef_schema():
      return Client(
          type_def="""
  schema {
    query: Query
  }
  
  interface Character {
    appearsIn: [Episode]
    friends: [Character]
    id: String!
    name: String
  }
  
  type Droid implements Character {
    appearsIn: [Episode]
    friends: [Character]
    id: String!
    name: String
    primaryFunction: String
  }
  
  enum Episode {
    EMPIRE
    JEDI
    NEWHOPE
  }
  
  type Human implements Character {
    appearsIn: [Episode]
    friends: [Character]
    homePlanet: String
    id: String!
    name: String
  }
  
  type Query {
    droid(id: String!): Droid
    hero(episode: Episode): Character
    human(id: String!): Human
  }"""
      )
  
file_path: wandb/wandb/vendor/gql-0.2.0/tests/starwars/test_validation.py
imports: import pytest
  from graphql import graphql
  from graphql.utils.introspection_query import introspection_query
  from gql import Client, gql
  from .schema import StarWarsSchema
label_desc: Use image node_id 2 for calling a global function with example usage: typedef_schema() and returns: Client