class_docstr: A NestedQuery that consists only of SumAggregationDPQueries.
class_docstr_tok: ["A","NestedQuery","that","consists","only","of","SumAggregationDPQueries","."]
docstr: Initializes the NestedSumQuery.
  
  Args:
    queries: A nested structure of queries that must all be
      SumAggregationDPQueries.
  Raises: TypeError if any of the subqueries are not SumAggregationDPQueries.
docstr_tok: ["Initializes","the","NestedSumQuery",".","Args",":","queries",":","A","nested","structure","of","queries","that","must","all","be","SumAggregationDPQueries",".","Raises",":","TypeError","if","any","of","the","subqueries","are","not","SumAggregationDPQueries","."]
code: def __init__(self, queries):
      """Initializes the NestedSumQuery.
  
      Args:
        queries: A nested structure of queries that must all be
          SumAggregationDPQueries.
      Raises: TypeError if any of the subqueries are not SumAggregationDPQueries.
      """
  
      def check(query):
          if not isinstance(query, dp_query.SumAggregationDPQuery):
              raise TypeError(
                  "All subqueries must be SumAggregationDPQueries."
              )
  
      tree.map_structure(check, queries)
  
      super().__init__(queries)
  
imports: import collections
  import dp_accounting
  import tensorflow
  from tensorflow_privacy.privacy.dp_query import dp_query
  import tree
label_desc: Use image node_id 1 to create a new NestedSumQuery object from inherited base classes: NestedQuery, dp_query with example: obj = NestedSumQuery(queries)