code: def _export_pytorch_model(f, pytorch_model, dummy_input):
      """
      Returns a binary I/O stream containing ONNX-exported pytorch_model that was
      traced with input `dummy_input`.
      """
      kwargs = {
          "do_constant_folding": False,
          "export_params": True,
          "input_names": ["input"],
          "operator_export_type": OperatorExportTypes.ONNX,
          "output_names": ["output"],
          "opset_version": _OPSET_VERSION,
      }
      torch.onnx.export(pytorch_model, dummy_input, f, **kwargs)
      return f
  
imports: import copy
  import io
  import onnx
  import torch
  import torch.onnx.symbolic_helper
  import torch.onnx.utils
  from onnx import numpy_helper
  from torch.onnx import OperatorExportTypes
  from .None import module
label_desc: Use image node_id 5 for calling a global function with example usage: _export_pytorch_model(f, pytorch_model, dummy_input) and returns: f