class_docstr: Collector class for reporting statistics on Tensorboard.
code: def __init__(self, base_dir: str):
      if not isinstance(base_dir, str):
          raise ValueError(
              "Must specify a base directory for TensorboardCollector."
          )
      super().__init__(base_dir)
      self.summary_writer = tf.summary.create_file_writer(
          self._base_dir
      )
  
file_path: dopamine/dopamine/metrics/tensorboard_collector.py
imports: from typing import Sequence
  from dopamine.metrics import collector
  from dopamine.metrics import statistics_instance
  import tensorflow
label_desc: Use image node_id 1 to create a new TensorboardCollector object from inherited base classes: collector with example: obj = TensorboardCollector(base_dir)