code: def export_model_if_required(args, nemo_model):
      if args.export:
          nemo_model.export("temp_rnnt.onnx")
          args.onnx_encoder = "encoder-temp_rnnt.onnx"
          args.onnx_decoder = "decoder_joint-temp_rnnt.onnx"
  
file_path: NeMo/examples/asr/export/transducer/infer_transducer_onnx.py
imports: import glob
  import json
  import os
  import tempfile
  from argparse import ArgumentParser
  import torch
  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 ONNXGreedyBatchedRNNTInfer
  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