code: def validation_errors(client, query):
      query = gql(query)
      try:
          client.validate(query)
          return False
      except Exception:
          return True
  
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 5 for calling a global function with example usage: validation_errors(client, query) and returns: False, True