code: def test_disallows_fields_on_scalars(client):
      query = """
          query HeroFieldsOnScalarQuery {
            hero {
              name {
                firstCharacterOfName
              }
            }
          }
      """
      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 9 for calling a global function with example usage: test_disallows_fields_on_scalars(client) without return types