code: def test_hero_name_and_friends_query(client):
      query = gql(
          """
          query HeroNameAndFriendsQuery {
            hero {
              id
              name
              friends {
                name
              }
            }
          }
      """
      )
      expected = {
          "hero": {
              "id": "2001",
              "name": "R2-D2",
              "friends": [
                  {"name": "Luke Skywalker"},
                  {"name": "Han Solo"},
                  {"name": "Leia Organa"},
              ],
          }
      }
      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 3 for calling a global function with example usage: test_hero_name_and_friends_query(client) without return types