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 = str(tmpdir / "c_plus_c.mod")
      root_node.save(filename)
  
      loaded_node = C.Function.load(filename)
      loaded_result = loaded_node.eval()
      assert np.allclose(loaded_result, expected)
  
      filename = filename + ".legacy"
      save_as_legacy_model(root_node, filename)
      loaded_node = C.Function.load(filename)
      loaded_result = loaded_node.eval()
      assert np.allclose(loaded_result, expected)
  
file_path: CNTK/bindings/python/cntk/tests/persist_test.py
imports: import numpy
  import cntk
  from cntk.debugging import save_as_legacy_model
label_desc: Use image node_id 1 for calling a global function with example usage: test_load_save_constant(tmpdir) without return types