code: def _parse_flags(_) -> argparse.Namespace:
      """Command line flags."""
      parser = argparse_flags.ArgumentParser(
          prog="build_catalog",
          description="Tool to generate the dataset catalog documentation",
      )
      parser.add_argument(
          "--datasets",
          help=(
              "Comma separated list of datasets to document. None for all datasets."
          ),
      )
      parser.add_argument(
          "--ds_collections",
          help=(
              "Comma separated list of dataset collections to document. None for "
              "all datasets."
          ),
      )
      parser.add_argument(
          "--catalog_dir",
          help="Directory path where to generate the catalog. Default to TFDS dir.",
      )
      return parser.parse_args()
  
file_path: datasets/tensorflow_datasets/scripts/documentation/build_catalog.py
imports: import argparse
  import collections
  import os
  from typing import Dict, List, Optional
  from absl import app
  from absl.flags import argparse_flags
  from etils import epath
  import tensorflow_datasets
  from tensorflow_datasets.scripts.documentation import doc_utils
  from tensorflow_datasets.scripts.documentation import document_datasets
  import yaml
label_desc: Use image node_id 1 for calling a global function with example usage: _parse_flags(_) and returns: parser