code: def init_logger(debug):
      fmt = "%(asctime)s %(message)s" if debug else "%(message)s"
      level = logging.DEBUG if debug else logging.INFO
      logging.basicConfig(
          format=fmt, level=level, datefmt="%Y-%m-%d %H:%M:%S"
      )
  
file_path: audio/examples/asr/emformer_rnnt/pipeline_demo.py
imports: import logging
  import pathlib
  from argparse import ArgumentParser, RawTextHelpFormatter
  from dataclasses import dataclass
  from functools import partial
  from typing import Callable
  import torch
  import torchaudio
  from common import MODEL_TYPE_LIBRISPEECH, MODEL_TYPE_MUSTC, MODEL_TYPE_TEDLIUM3
  from mustc.dataset import MUSTC
  from torchaudio.pipelines import EMFORMER_RNNT_BASE_LIBRISPEECH, RNNTBundle
  from torchaudio.prototype.pipelines import EMFORMER_RNNT_BASE_MUSTC, EMFORMER_RNNT_BASE_TEDLIUM3
label_desc: Use image node_id 3 for calling a global function with example usage: init_logger(debug) without return types