docstr: Call this once you are satisfied setting up custom scalar
docstr_tok: ["Call","this","once","you","are","satisfied","setting","up","custom","scalar"]
code: def add_custom_scalars(cls, writer):
      """
      Call this once you are satisfied setting up custom scalar
      """
      writer.add_custom_scalars(cls._custom_scalars)
  
file_path: ReAgent/reagent/core/tensorboardX.py
imports: import contextlib
  import logging
  from typing import Any, Dict, List
  from torch.utils.tensorboard import SummaryWriter
label_desc: Use image node_id 4 for calling the SummaryWriterContext obj's underlying member method code with example usage: obj.add_custom_scalars(cls, writer) without return types