code: def test_export_testcase(
      tmpdir,
      model,
      x,
      disable_experimental_warning,
      in_names,
      out_names,
  ):
      # Just check the existence of pb files
      path = str(tmpdir)
      export_testcase(
          model,
          (x,),
          path,
          input_names=in_names,
          output_names=out_names,
      )
  
      assert os.path.isfile(os.path.join(path, "model.onnx"))
      input_pb_path = os.path.join(
          path, "test_data_set_0", "input_0.pb"
      )
      assert os.path.isfile(input_pb_path)
      input_tensor = onnx.load_tensor(input_pb_path)
      assert input_tensor.name == (
          in_names[0] if in_names else "Input_0"
      )
      output_pb_path = os.path.join(
          path, "test_data_set_0", "output_0.pb"
      )
      assert os.path.isfile(output_pb_path)
      output_tensor = onnx.load_tensor(output_pb_path)
      assert output_tensor.name == (
          out_names[0] if out_names else "LinearFunction_1"
      )
  
file_path: chainer/tests/onnx_chainer_tests/test_export_testcase.py
imports: import os
  import chainer
  import chainer.functions
  import chainer.links
  import numpy
  import onnx
  import pytest
  from onnx_chainer import export_testcase
  from onnx_chainer import export
label_desc: Use image node_id 3 for calling a global function with example usage: test_export_testcase(tmpdir, model, x, disable_experimental_warning, in_names, out_names) without return types