def METHOD_NAME():
    query = """{
    user {
      pets {
        owner {
          pets {
            owner {
              pets {
                name
              }
            }
          }
        }
      }
    }
    }
    """
    errors, result = run_query(query, 4)
    assert len(errors) == 1
    assert errors[0].message == "'anonymous' exceeds maximum operation depth of 4"