def METHOD_NAME(api_client, categories_with_children, count_queries):
    query = """query categories {
        categories(first: 30) {
          edges {
            node {
              children(first: 30) {
                edges {
                  node {
                    id
                    name
                    children(first: 30) {
                      edges {
                        node {
                          id
                          name
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }"""
    content = get_graphql_content(api_client.post_graphql(query))
    assert content["data"]["categories"] is not None