class_docstr: Utility class responsible from creating a tensor tracer report.
docstr: Writes the mapping from cache index to tensor index to the report.
code: def _write_cache_index_map_section(self, tensor_trace_order):
      """Writes the mapping from cache index to tensor index to the report."""
      self._write_report(
          "%s %s\n"
          % (_MARKER_SECTION_BEGIN, _SECTION_NAME_CACHE_INDEX_MAP)
      )
      self._write_report(
          "%s %d\n"
          % (
              _FIELD_NAME_NUM_CACHE_INDICES,
              len(tensor_trace_order.cache_idx_to_tensor_idx),
          )
      )
      for cache_idx in range(
          0, len(tensor_trace_order.cache_idx_to_tensor_idx)
      ):
          tensor_idx = tensor_trace_order.cache_idx_to_tensor_idx[
              cache_idx
          ]
          line = "%d %d\n" % (cache_idx, tensor_idx)
          self._write_report(line)
      self._write_report(
          "%s %s\n"
          % (_MARKER_SECTION_END, _SECTION_NAME_CACHE_INDEX_MAP)
      )
  
imports: import collections
  import hashlib
  import os
  from tensorflow.python.platform import gfile
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.tpu import tensor_tracer_pb2
label_desc: Use image node_id 15 for calling the TTReportHandle obj's underlying member method code with example usage: obj._write_cache_index_map_section(tensor_trace_order) without return types