code: def test_dc_set_variable_called_twice_error():
      a = mx.np.arange(10)
      dc.set_variable(a, mx.sym.var("a"))
      with pytest.raises(MXNetError):
          # TODO(leezu): Should raise ValueError https://github.com/apache/incubator-mxnet/issues/17522
          dc.set_variable(a, mx.sym.var("b"))
  
imports: import functools
  import operator
  import numpy
  import mxnet
  import mxnet._deferred_compute
  from mxnet.base import MXNetError
  from mxnet.util import TemporaryDirectory
  import pytest
label_desc: Use image node_id 18 for calling a global function with example usage: test_dc_set_variable_called_twice_error() without return types