code: def register_subparser(parsers: argparse._SubParsersAction) -> None:
      """Add subparser for `convert_format` command."""
      parser = parsers.add_parser(
          "convert_format",
          help="Converts a dataset from one file format to another format.",
      )
      add_parser_arguments(parser)
      parser.set_defaults(
          subparser_fn=lambda args: convert_format_utils.convert_dataset(
              dataset_dir=args.dataset_dir,
              out_dir=args.out_dir,
              out_file_format=args.out_file_format,
              use_beam=args.use_beam,
          )
      )
  
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 2 for calling a global function with example usage: register_subparser(parsers) without return types