class_docstr: Log objects to tensorboard.
docstr: Add tensorboard CLI args.
docstr_tok: ["Add","tensorboard","CLI","args","."]
code: def add_cmdline_args(
      cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None
  ) -> ParlaiParser:
      """
      Add tensorboard CLI args.
      """
      logger = parser.add_argument_group("Tensorboard Arguments")
      logger.add_argument(
          "-tblog",
          "--tensorboard-log",
          type="bool",
          default=False,
          help="Tensorboard logging of metrics",
          hidden=False,
      )
      logger.add_argument(
          "-tblogdir",
          "--tensorboard-logdir",
          type=str,
          default=None,
          help="Tensorboard logging directory, defaults to model_file.tensorboard",
          hidden=False,
      )
      return parser
  
imports: import datetime
  import json
  import numbers
  import os
  import pathlib
  import re
  from typing import Optional
  import parlai.utils.logging
  from parlai.core.metrics import Metric, dict_report, get_metric_display_data
  from parlai.core.opt import Opt
  from parlai.core.params import ParlaiParser
  from parlai.utils.io import PathManager
label_desc: Use image node_id 1 for calling the TensorboardLogger obj's underlying member method code with example usage: obj.add_cmdline_args(cls, parser, partial_opt) and returns: parser