code: def _get_input_output_names(onnx_model):
      """
      Return input and output names of the ONNX graph.
      """
      input_names = [input.name for input in onnx_model.graph.input]
      output_names = [output.name for output in onnx_model.graph.output]
      assert (
          len(input_names) >= 1
      ), "number of inputs should be at least 1"
      assert len(output_names) == 1, "number of outputs should be 1"
      return input_names, output_names
  
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 8 for calling a global function with example usage: _get_input_output_names(onnx_model) and returns: input_names,  output_names