class_docstr: This module provides access to data in the TOD conversations format.
  
  See core/tod.py for more info about the format.
code: def add_cmdline_args(
      cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None
  ) -> ParlaiParser:
      super().add_cmdline_args(parser, partial_opt)
      agent = parser.add_argument_group("Tod Json Task Arguments")
      agent.add_argument(
          "-jfdp",
          "--jsonfile-datapath",
          type=str,
          help="Data file. (Assumed to be in .jsonl)",
      )
      agent.add_argument(
          "-tmdp",
          "--tod-metrics-datapath",
          type=str,
          default=None,
          help="Filter which examples to use from a report including per-turn tod metrics",
      )
      agent.add_argument(
          "-f-agh",
          "--filter-all-goals-hit",
          type=bool,
          default=False,
          help="Filter episodes by all-goals-hit metric being 1. Assumes `tod-metrics-datapath` is set.",
      )
      agent.add_argument(
          "--split-to-folds",
          type=bool,
          default=True,
          help="Use all data or split into 8:1:1 fold",
      )
      agent.add_argument(
          "--split-folds-seed",
          type=int,
          default=42,
          help="Seed for the fold split",
      )
      agent.add_argument(
          "--fail-hard",
          type=bool,
          default=False,
          help="Raise errors if formatting not correct",
      )
      return parser
  
imports: from typing import Optional
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  from parlai.utils.data import DatatypeHelper
  import parlai.core.tod.tod_agents
  import parlai.core.tod.tod_core
  import json
  import os
label_desc: Use image node_id 1 for calling the JsonTodParser obj's underlying member method code with example usage: obj.add_cmdline_args(cls, parser, partial_opt) and returns: parser