code: def test_nested_query_with_fragment(client):
      query = """
          query NestedQueryWithFragment {
            hero {
              ...NameAndAppearances
              friends {
                ...NameAndAppearances
                friends {
                  ...NameAndAppearances
                }
              }
            }
          }
          fragment NameAndAppearances on Character {
            name
            appearsIn
          }
      """
      assert not 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 6 for calling a global function with example usage: test_nested_query_with_fragment(client) without return types