code: def __init__(self, writer: MetricWriter) -> None:
      self.writer = writer
  
file_path: determined/harness/determined/tensorboard/metric_writers/callback.py
imports: import abc
  import logging
  from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union
  from determined import util
label_desc: Use image node_id 1 to create a new BatchMetricWriter object  with example: obj = BatchMetricWriter(writer)