code: def _parse_flags(argv: List[str]) -> argparse.Namespace:
      """Command lines flag parsing."""
      argv = flag_utils.normalize_flags(
          argv
      )  # See b/174043007 for context.
  
      parser = argparse_flags.ArgumentParser(
          description="Tensorflow Datasets CLI tool",
          allow_abbrev=False,
      )
      parser.add_argument(
          "--version",
          action="version",
          version="TensorFlow Datasets: " + tfds.__version__,
      )
      parser.set_defaults(subparser_fn=lambda _: parser.print_help())
      # Register sub-commands
      subparser = parser.add_subparsers(title="command")
      build.register_subparser(subparser)
      new.register_subparser(subparser)
      convert_format.register_subparser(subparser)
      return parser.parse_args(argv[1:])
  
file_path: datasets/tensorflow_datasets/scripts/cli/main.py
imports: import argparse
  import logging
  from typing import List
  from absl import app
  from absl import flags
  from absl import logging
  from absl.flags import argparse_flags
  import tensorflow_datasets.public_api
  from tensorflow_datasets.scripts.cli import build
  from tensorflow_datasets.scripts.cli import convert_format
  from tensorflow_datasets.scripts.cli import new
  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