code: def test_hero_name_query(client):
      query = gql(
          """
      {
        myFavoriteFilm: film(id:"RmlsbToz") {
          id
          title
          episodeId
          characters(first:5) {
            edges {
              node {
                name
              }
            }
          }
        }
      }
      """
      )
      expected = {
          "myFavoriteFilm": {
              "id": "RmlsbToz",
              "title": "Return of the Jedi",
              "episodeId": 6,
              "characters": {
                  "edges": [
                      {"node": {"name": "Luke Skywalker"}},
                      {"node": {"name": "C-3PO"}},
                      {"node": {"name": "R2-D2"}},
                      {"node": {"name": "Darth Vader"}},
                      {"node": {"name": "Leia Organa"}},
                  ]
              },
          }
      }
      with vcr.use_cassette(
          "tests/fixtures/vcr_cassettes/execute.yaml"
      ):
          result = client.execute(query)
          assert result == expected
  
imports: import pytest
  import requests
  import vcr
  from gql import Client, gql
  from gql.transport.requests import RequestsHTTPTransport
label_desc: Use image node_id 2 for calling a global function with example usage: test_hero_name_query(client) without return types