code: def add_parser_arguments(parser: argparse.ArgumentParser) -> None:
      """Add arguments for `convert_format` subparser."""
      parser.add_argument(
          "--dataset_dir",
          type=str,
          help=(
              "Path where the dataset to be converted is located. Should include"
              " config and version."
          ),
          required=True,
      )
      parser.add_argument(
          "--out_file_format",
          type=str,
          choices=[
              file_format.value
              for file_format in file_adapters.FileFormat
          ],
          help="File format to convert the dataset to.",
          required=True,
      )
      parser.add_argument(
          "--out_dir",
          type=pathlib.Path,
          help=(
              "Path where the converted dataset will be stored. Should include the"
              " config and version, e.g. `/data/dataset_name/config/1.2.3`."
          ),
          required=True,
      )
      parser.add_argument(
          "--overwrite",
          action="store_true",
          help="Whether to overwrite the output directory if it already exists.",
      )
      parser.add_argument(
          "--use_beam",
          action="store_true",
          help="Use beam to convert the dataset.",
      )
  
imports: import argparse
  import pathlib
  from tensorflow_datasets.core import file_adapters
  from tensorflow_datasets.scripts.cli import convert_format_utils
label_desc: Use image node_id 1 for calling a global function with example usage: add_parser_arguments(parser) without return types