code: def test_check_type_of_r2(client):
      query = gql(
          """
          query CheckTypeOfR2 {
            hero {
              __typename
              name
            }
          }
      """
      )
      expected = {
          "hero": {
              "__typename": "Droid",
              "name": "R2-D2",
          }
      }
      result = client.execute(query)
      assert result == expected
  
file_path: wandb/wandb/vendor/gql-0.2.0/tests/starwars/test_query.py
imports: import pytest
  from graphql.error import format_error
  from gql import Client, gql
  from .schema import StarWarsSchema
label_desc: Use image node_id 13 for calling a global function with example usage: test_check_type_of_r2(client) without return types