class_docstr: Log objects to ClearML.
  
  To log all the necessary details for a ParlAI experiment using MLOps. After logging,
  details can be viewed in ClearML Experiment Manager Web UI.
docstr: Add ClearML CLI args.
docstr_tok: ["Add","ClearML","CLI","args","."]
code: def add_cmdline_args(
      cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None
  ) -> ParlaiParser:
      """
      Add ClearML CLI args.
      """
      logger = parser.add_argument_group("ClearML Arguments")
      logger.add_argument(
          "-clearmllog",
          "--clearml-log",
          type=bool,
          default=False,
          help="Creates a ClearML Task. Default: False. If True, ClearML logging will be enabled.",
          hidden=False,
      )
  
      logger.add_argument(
          "-clearmlproject",
          "--clearml-project-name",
          type=str,
          default="ParlAI",
          help="ClearML Project Name. All the logs will be stored under this project in ClearML WebUI. If not set, default will set to ParlAI.",
          hidden=False,
      )
  
      logger.add_argument(
          "-clearmltask",
          "--clearml-task-name",
          type=str,
          default="Default Task",
          help='ClearML Task Name. All the logs will be stored under this task in ClearML WebUI. If not set, default will set to "Default Task".',
          hidden=False,
      )
  
      return logger
  
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 ClearMLLogger obj's underlying member method code with example usage: obj.add_cmdline_args(cls, parser, partial_opt) and returns: logger