code: def main():
      args = get_args()
  
      input_manifest_path = args.input_manifest
      output_manifest_path = args.output_manifest
      text_key = args.text_key
      normalized_text_key = args.normalized_text_key
      lower_case = args.lower_case
      num_workers = args.num_workers
      batch_size = args.joblib_batch_size
      max_entries = args.max_entries
      overwrite = args.overwrite
  
      if output_manifest_path.exists():
          if overwrite:
              print(
                  f"Will overwrite existing manifest path: {output_manifest_path}"
              )
          else:
              raise ValueError(
                  f"Manifest path already exists: {output_manifest_path}"
              )
  
      if args.normalizer_config_path:
          normalizer_config = OmegaConf.load(
              args.normalizer_config_path
          )
          normalizer = instantiate(normalizer_config)
          lower_case_norm = normalizer.input_case == "lower_cased"
      else:
          normalizer = None
          lower_case_norm = False
  
      entries = read_manifest(input_manifest_path)
      if max_entries:
          entries = entries[:max_entries]
  
      if not batch_size:
          batch_size = "auto"
  
      output_entries = Parallel(
          n_jobs=num_workers, batch_size=batch_size
      )(
          delayed(_process_entry)(
              entry=entry,
              normalizer=normalizer,
              text_key=text_key,
              normalized_text_key=normalized_text_key,
              lower_case=lower_case,
              lower_case_norm=lower_case_norm,
          )
          for entry in tqdm(entries)
      )
  
      write_manifest(
          output_path=output_manifest_path,
          target_manifest=output_entries,
          ensure_ascii=False,
      )
  
file_path: NeMo/scripts/dataset_processing/tts/preprocess_text.py
imports: import argparse
  from pathlib import Path
  from hydra.utils import instantiate
  from joblib import Parallel, delayed
  from omegaconf import OmegaConf
  from tqdm import tqdm
  from nemo.collections.asr.parts.utils.manifest_utils import read_manifest, write_manifest
label_desc: Use image node_id 3 for calling a global function with example usage: main() without return types