code: def test_load_save_constant(tmpdir):
      c = C.constant(value=[1, 3])
      root_node = c * 5
  
      result = root_node.eval()
      expected = [[[[5, 15]]]]
      assert np.allclose(result, expected)
  
      filename = os.path.join(str(tmpdir), R"constant.onnx")
      root_node.save(filename, format=C.ModelFormat.ONNX)
  
      loaded_node = C.Function.load(filename, format=C.ModelFormat.ONNX)
      assert root_node.shape == loaded_node.shape
  
      loaded_result = loaded_node.eval()
      assert np.allclose(loaded_result, expected)
  
file_path: CNTK/bindings/python/cntk/tests/onnx_format_test.py
imports: import os
  import numpy
  import cntk
  from cntk.ops.tests.ops_test_utils import cntk_device
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_load_save_constant(tmpdir) without return types