code: def do_export(model, name: str):
      with tempfile.TemporaryDirectory() as tmpdir:
          # Generate filename in the temporary directory.
          tmp_file_name = os.path.join(tmpdir, name + ".onnx")
          # Test export.
          if torch.cuda.is_available():
              model = model.cuda()
          model.export(tmp_file_name)
  
file_path: NeMo/tests/collections/nlp/test_huggingface.py
imports: import os
  import tempfile
  import pytest
  import torch
  from omegaconf import OmegaConf
  import nemo.collections.nlp
  from nemo.collections.common.tokenizers.huggingface.auto_tokenizer import AutoTokenizer
  from nemo.collections.nlp.modules.common.tokenizer_utils import get_tokenizer
label_desc: Use image node_id 1 for calling a global function with example usage: do_export(model, name) without return types