code: def test_load_save_input_legacy_names(tmpdir):
      i1 = C.input_variable((1, 2), name="i1")
      root_node = abs(i1)
      input1 = [[[-1, 2]]]
  
      result = root_node.eval({i1: input1})
      expected = [[[[1, 2]]]]
      assert np.allclose(result, expected)
  
      filename = str(tmpdir / "i_plus_c_0.mod")
      root_node.save(filename)
  
      loaded_node = C.Function.load(filename)
  
      # Test specifying the input node names by order
      loaded_result = loaded_node.eval([input1])
      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([input1])
      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 2 for calling a global function with example usage: test_load_save_input_legacy_names(tmpdir) without return types