code: def add_scalar(
      self, name: str, value: Union[int, float, np.number], step: int
  ) -> None:
      self.writer.add_scalar(name, value, step)
  
file_path: determined/harness/determined/tensorboard/metric_writers/pytorch.py
imports: import warnings
  from typing import Any, Union
  import numpy
  import torch
  from packaging import version
  from determined import tensorboard
  from torch.utils.tensorboard import SummaryWriter
label_desc: Use image node_id 2 for calling the _TorchWriter obj's underlying member method code with example usage: obj.add_scalar(name, value, step) without return types