code: def main(args: argparse.Namespace) -> None:
      if args.filename_template or args.filetype:
          filename_template = naming.ShardedFileTemplate(
              data_dir=args.data_dir,
              filetype_suffix=args.filetype or None,
              dataset_name=args.dataset_name or None,
              template=args.filename_template or None,
          )
      else:
          filename_template = None
  
      tfds.folder_dataset.compute_split_info_from_directory(
          data_dir=args.data_dir,
          out_dir=args.out_dir,
          filename_template=filename_template,
      )
  
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 2 for calling a global function with example usage: main(args) without return types