code: def _subnetwork_report_to_dict(subnetwork_report):
      """Converts a Subnetwork report to a JSON serializable dict."""
  
      return {
          "name": subnetwork_report.name,
          "hparams": _validate_report_dict(subnetwork_report.hparams),
          "attributes": _validate_report_dict(
              subnetwork_report.attributes
          ),
          "metrics": _validate_report_dict(subnetwork_report.metrics),
          "included_in_final_ensemble": subnetwork_report.included_in_final_ensemble,
      }
  
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 3 for calling a global function with example usage: _subnetwork_report_to_dict(subnetwork_report) and returns: dict