code: def _parse_flags(argv: List[str]) -> argparse.Namespace:
      """Parses command line flags."""
      argv = flag_utils.normalize_flags(
          argv
      )  # See b/174043007 for context.
  
      parser = argparse_flags.ArgumentParser(
          description="Tensorflow Datasets CLI tool",
      )
      parser.add_argument(
          "--data_dir",
          type=tfds.core.Path,
          help="Path to the dataset files.",
      )
      parser.add_argument(
          "--out_dir",
          type=tfds.core.Path,
          help="Computed metadata will be written here.",
      )
      parser.add_argument(
          "--filename_template",
          type=str,
          help="Filename template that describes the file names in the data dir.",
      )
      parser.add_argument(
          "--filetype",
          type=str,
          help="The file type of the data, e.g. `tfrecord` or `array_record`.",
      )
      parser.add_argument(
          "--dataset_name",
          type=str,
          help="The name of the dataset.",
      )
      return parser.parse_args(argv[1:])
  
file_path: datasets/tensorflow_datasets/scripts/tools/compute_split_info.py
imports: import argparse
  from typing import List
  from absl import app
  from absl.flags import argparse_flags
  import tensorflow_datasets
  from tensorflow_datasets.core import naming
  from tensorflow_datasets.scripts.utils import flag_utils
label_desc: Use image node_id 1 for calling a global function with example usage: _parse_flags(argv) and returns: parser