code: def testWithReusedVariables(self):
      with self.assertRaisesRegexp(
          ValueError, "Multiple assignments to variable 'x'"
      ):
          hparam.parse_values("x=1,x=1", {"x": int})
  
      with self.assertRaisesRegexp(
          ValueError, "Multiple assignments to variable 'arr'"
      ):
          hparam.parse_values("arr=[100,200],arr[0]=10", {"arr": int})
  
      with self.assertRaisesRegexp(
          ValueError, r"Multiple assignments to variable \'arr\[0\]\'"
      ):
          hparam.parse_values("arr[0]=10,arr[0]=20", {"arr": int})
  
      with self.assertRaisesRegexp(
          ValueError, "Multiple assignments to variable 'arr'"
      ):
          hparam.parse_values("arr[0]=10,arr=[100]", {"arr": int})
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from tensor2tensor.utils import hparam
  import tensorflow.compat.v1
label_desc: Use image node_id 26 for calling the HParamsTest obj's underlying member method code with example usage: obj.testWithReusedVariables() without return types