docstr: Tests that non-resource variable usage is disallowed.
code: def test_non_resource_variable_error(self):
      """Tests that non-resource variable usage is disallowed."""
      a = variable_scope.get_variable(
          name="variable_a", shape=(1), use_resource=False
      )
  
      context = self.create_test_xla_compile_context()
      context.Enter()
      with self.assertRaisesRegex(
          NotImplementedError,
          "Non-resource Variables are not supported inside "
          r"XLA computations \(operator name: Assign\)",
      ):
          state_ops.assign(a, a + 1)
      context.Exit()
  
imports: from absl.testing import parameterized
  from tensorflow.python import summary
  from tensorflow.python.compiler.xla import xla
  from tensorflow.python.eager import def_function
  from tensorflow.python.estimator import model_fn
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import control_flow_util
  from tensorflow.python.ops import logging_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import state_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import while_loop
  from tensorflow.python.platform import test
  from tensorflow.python.tpu import tpu_feed
label_desc: Use image node_id 5 for calling the XLACompileContextTest obj's underlying member method code with example usage: obj.test_non_resource_variable_error() without return types