code: def test_parse_error(client):
      result = None
      with pytest.raises(Exception) as excinfo:
          query = gql(
              """
              qeury
          """
          )
          result = client.execute(query)
      error = excinfo.value
      formatted_error = format_error(error)
      assert formatted_error["locations"] == [{"column": 13, "line": 2}]
      assert (
          'Syntax Error GraphQL request (2:13) Unexpected Name "qeury"'
          in formatted_error["message"]
      )
      assert not result
  
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 15 for calling a global function with example usage: test_parse_error(client) without return types