code: def _write_scalar(self, name:str, scalar_value, iteration:int)->None:
          "Writes single scalar value to Tensorboard."
          tag = self.metrics_root + name
          self.tbwriter.add_scalar(tag=tag, scalar_value=scalar_value, global_step=iterationf _write_scalar(self, name:str, scalar_value, iteration:int)->None:
          "Writes single scalar value to Tensorboard."
          tag = self.metrics_root + name
          self.tbwriter.add_scalar(tag=tag, scalar_value=scalar_value, global_step=iteration)
docs: Writes single scalar value to Tensorboard.