code: def _get_write_histogram_proto(self, api_label):
      proto_bytes = metrics.GetCheckpointWriteDurations(
          api_label=api_label
      )
      histogram_proto = summary_pb2.HistogramProto()
      histogram_proto.ParseFromString(proto_bytes)
      return histogram_proto
  
file_path: tensorflow/tensorflow/python/checkpoint/checkpoint_metrics_test.py
imports: import os
  import time
  from tensorflow.core.framework import summary_pb2
  from tensorflow.python.checkpoint import checkpoint
  from tensorflow.python.eager import context
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.saved_model.pywrap_saved_model import metrics
label_desc: Use image node_id 1 for calling the CheckpointMetricTests obj's underlying member method code with example usage: obj._get_write_histogram_proto(api_label) and returns: histogram_proto