code: def test_weak_tensor_iter_graph_mode(self):
      # Make sure iteration is not allowed in Graph mode.
      wt = WeakTensor.from_tensor(
          constant_op.constant([0, 1, 2], dtypes.int32)
      )
      with self.assertRaisesRegex(
          errors.OperatorNotAllowedInGraphError,
          "Iterating over a symbolic `tf.WeakTensor` is not allowed. You can"
          " attempt the following resolutions to the problem: If you are running"
          " in Graph mode, use Eager execution mode or decorate this function"
          " with @tf.function. If you are using AutoGraph, you can try decorating"
          " this function with @tf.function. If that does not work, then you may"
          " be using an unsupported feature or your source code may not be"
          " visible to AutoGraph. See"
          " https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/autograph/g3doc/reference/limitations.md#access-to-source-code"
          " for more information.",
      ):
          _ = iter(wt)
  
imports: import numpy
  from tensorflow.python.eager import backprop
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import extension_type
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.framework.weak_tensor import EagerWeakTensor
  from tensorflow.python.framework.weak_tensor import GraphWeakTensor
  from tensorflow.python.framework.weak_tensor import WeakTensor
  from tensorflow.python.module import module
  from tensorflow.python.platform import googletest
  from tensorflow.python.saved_model.load import load
  from tensorflow.python.saved_model.save import save
  from tensorflow.python.types import core
label_desc: Use image node_id 14 for calling the WeakTensorTest obj's underlying member method code with example usage: obj.test_weak_tensor_iter_graph_mode() without return types