class_docstr: Implementation of sequential plate. Should not be used directly.
class_docstr_tok: ["Implementation","of","sequential","plate",".","Should","not","be","used","directly","."]
code: def __iter__(self):
      with ignore_jit_warnings(
          [("Iterating over a tensor", RuntimeWarning)]
      ), self:
          self._counter = 0
          for i in self.indices:
              self._counter += 1
              yield i if isinstance(i, Number) else i.item()
  
imports: from collections import OrderedDict
  from numbers import Number
  import funsor
  from pyro.contrib.funsor.handlers.named_messenger import DimRequest, DimType, GlobalNamedMessenger, NamedMessenger
  from pyro.contrib.funsor.handlers.primitives import to_data, to_funsor
  from pyro.distributions.util import copy_docs_from
  from pyro.poutine.broadcast_messenger import BroadcastMessenger
  from pyro.poutine.indep_messenger import CondIndepStackFrame
  from pyro.poutine.messenger import Messenger
  from pyro.poutine.runtime import effectful
  from pyro.poutine.subsample_messenger import SubsampleMessenger
  from pyro.util import ignore_jit_warnings
label_desc: Use image node_id 2 for calling the _SequentialPlateMessenger obj's underlying member method code with example usage: obj.__iter__() without return types