class_docstr: Iterates over the leading dim of a WeakTensor. Performs no error checks.
class_docstr_tok: ["Iterates","over","the","leading","dim","of","a","WeakTensor",".","Performs","no","error","checks","."]
code: def __next__(self):
      if self._index == self._limit:
          raise StopIteration
      result = WeakTensor.from_tensor(
          (self._weak_tensor.tensor[self._index])
      )
      self._index += 1
      return result
  
imports: from typing import Optional
  import numpy
  from tensorflow.python.eager import context
  from tensorflow.python.framework import composite_tensor_gradient
  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 tensor_conversion_registry
  from tensorflow.python.types import core
label_desc: Use image node_id 3 for calling the _WeakTensorIterator obj's underlying member method code with example usage: obj.__next__() and returns: result