code: def test_require_fields_on_object(client):
      query = """
          query HeroNoFieldsQuery {
            hero
          }
      """
      assert validation_errors(client, query)
  
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 8 for calling a global function with example usage: test_require_fields_on_object(client) without return types