class_docstr: Store and retrieve report JSON files.
class_docstr_tok: ["Store","and","retrieve","report","JSON","files","."]
docstr: Writes an iteration's `MaterializedReports` to a JSON file.
  
  TODO: Remove iteration_number from the argument of this method.
  
  Note that even materialized_reports also contain iteration
  number, those are ignored -- only the iteration_number that is passed into
  this method would be written to the proto.
  
  Args:
    iteration_number: Int for the iteration number.
    materialized_reports: A list of `adanet.subnetwork.MaterializedReport`
      objects.
docstr_tok: ["Writes","an","iteration","'s","`","MaterializedReports","`","to","a","JSON","file",".","TODO",":","Remove","iteration_number","from","the","argument","of","this","method",".","Note","that","even","materialized_reports","also","contain","iteration","number",",","those","are","ignored","--","only","the","iteration_number","that","is","passed","into","this","method","would","be","written","to","the","proto",".","Args",":","iteration_number",":","Int","for","the","iteration","number",".","materialized_reports",":","A","list","of","`","adanet.subnetwork.MaterializedReport","`","objects","."]
code: def write_iteration_report(
      self, iteration_number, materialized_reports
  ):
      """Writes an iteration's `MaterializedReports` to a JSON file.
  
      TODO: Remove iteration_number from the argument of this method.
  
      Note that even materialized_reports also contain iteration
      number, those are ignored -- only the iteration_number that is passed into
      this method would be written to the proto.
  
      Args:
        iteration_number: Int for the iteration number.
        materialized_reports: A list of `adanet.subnetwork.MaterializedReport`
          objects.
      """
  
      iteration_report = {
          "iteration_number": int(iteration_number),
          "subnetwork_reports": list(
              map(_subnetwork_report_to_dict, materialized_reports)
          ),
      }
  
      self._append_iteration_report_json(iteration_report)
      logging.info(
          "Wrote IterationReport for iteration %s to %s",
          iteration_number,
          self._full_filepath,
      )
  
file_path: adanet/adanet/core/report_accessor.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import json
  import os
  from absl import logging
  from adanet import subnetwork
  import numpy
  import six
  import tensorflow.compat.v2
label_desc: Use image node_id 2 for calling the _ReportAccessor obj's underlying member method code with example usage: obj.write_iteration_report(iteration_number, materialized_reports) without return types