code: def test_set_name():
      x = C.input_variable((1,))
      y = C.input_variable((1,))
      x_plus_y = x + y
      assert x_plus_y.name == ""
      x_plus_y.name = "x_plus_y"
      assert x_plus_y.name == "x_plus_y"
  
      x_plus_y_2 = C.plus(x, y, name="x_plus_y_2")
      assert x_plus_y_2.name == "x_plus_y_2"
      with pytest.raises(ValueError):
          x_plus_y_2.name = "x_plus_y_2_new"
  
      from ... import cntk_py
  
      cntk_py.allow_renaming_functions()
  
      x_plus_y_2.name = "x_plus_y_2_new"
  
imports: import numpy
  import os
  import pytest
  import cntk
  from .ops_test_utils import compare_lists_of_np_arrays, AA, cntk_device
  from cntk.io import MinibatchSource, CTFDeserializer, StreamDefs, StreamDef
label_desc: Use image node_id 10 for calling a global function with example usage: test_set_name() without return types