code: def export_model_if_required(args, nemo_model):
      if args.export:
          nemo_model.export(output="temp_rnnt.ts", check_trace=True)
          OmegaConf.save(nemo_model.cfg, "ts_cfg.yaml")
  
          args.ts_encoder = "encoder-temp_rnnt.ts"
          args.ts_decoder = "decoder_joint-temp_rnnt.ts"
          args.ts_cfg = "ts_cfg.yaml"
  
file_path: NeMo/examples/asr/export/transducer/infer_transducer_ts.py
imports: import glob
  import json
  import os
  import tempfile
  from argparse import ArgumentParser
  import torch
  from omegaconf import OmegaConf
  from tqdm import tqdm
  from nemo.collections.asr.metrics.wer import word_error_rate
  from nemo.collections.asr.models import ASRModel
  from nemo.collections.asr.parts.submodules.rnnt_greedy_decoding import TorchscriptGreedyBatchedRNNTInfer
  from nemo.utils import logging
label_desc: Use image node_id 3 for calling a global function with example usage: export_model_if_required(args, nemo_model) without return types