code: def iter_plates_to_shape(shape):
      # Go backwards (right to left)
      for i, s in enumerate(shape[::-1]):
          yield pyro.plate("plate_" + str(i), s)
  
file_path: pyro/pyro/contrib/util.py
imports: import weakref
  from collections import OrderedDict
  import torch
  import pyro
label_desc: Use image node_id 10 for calling a global function with example usage: iter_plates_to_shape(shape) without return types