code: def main(args: argparse.Namespace) -> None:
      # From the CLI, all datasets are visible
      tfds.core.visibility.set_availables(
          [
              tfds.core.visibility.DatasetType.TFDS_PUBLIC,
              tfds.core.visibility.DatasetType.COMMUNITY_PUBLIC,
          ]
      )
  
      # By default, ABSL won't display any `logging.info` unless the
      # user explicitly set `--logtostderr`.
      # For usability, we activate by default the python log information, but
      # not the C++ ones (which are too verbose).
      # `logtostderr` may not be defined if `main()` is called directly without
      # `absl.run` (e.g. open source `pytest` tests)
      if not FLAGS.is_parsed() or (
          # If user explicitly request logs, keep C++ logger
          not FLAGS.logtostderr
          and not FLAGS.alsologtostderr
      ):
          # Using cleaner, less verbose logger
          formatter = python_logging.Formatter(
              "{levelname}[{filename}]: {message}", style="{"
          )
          logging.use_python_logging(quiet=True)
          logging.set_verbosity(logging.INFO)
          python_handler = logging.get_absl_handler().python_handler
          python_handler.setFormatter(formatter)
          # Replace `sys.stderr` by the TQDM file
          new_stream = tfds.core.utils.tqdm_utils.TqdmStream()
          python_handler.setStream(new_stream)
  
      # Launch the subcommand defined in the subparser (or default to print help)
      args.subparser_fn(args)
  
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 2 for calling a global function with example usage: main(args) without return types