code: def cli_main():
      args = parse_args()
      dataset = get_dataset(args)
      dataloader = torch.utils.data.DataLoader(dataset, num_workers=4)
      mean, stddev = generate_statistics(iter(dataloader))
  
      json_str = json.dumps(
          {"mean": mean.tolist(), "invstddev": (1 / stddev).tolist()},
          indent=2,
      )
  
      with open(args.output_path, "w") as f:
          f.write(json_str)
  
file_path: audio/examples/asr/emformer_rnnt/global_stats.py
imports: import json
  import logging
  import pathlib
  from argparse import ArgumentParser, RawTextHelpFormatter
  import torch
  import torchaudio
  from common import MODEL_TYPE_LIBRISPEECH, MODEL_TYPE_MUSTC, MODEL_TYPE_TEDLIUM3, piecewise_linear_log, spectrogram_transform
  from mustc.dataset import MUSTC
label_desc: Use image node_id 4 for calling a global function with example usage: cli_main() without return types