def METHOD_NAME():
    class Q(cirq.Qid):
        @property
        def dimension(self) -> int:
            return 2
        def _comparison_key(self) -> Any:
            return 1
        def __iter__(self):
            # Having this method makes `isinstance(x, Iterable)` return True.
            raise NotImplementedError()
    q = Q()
    assert cirq.I.on_each(q) == [cirq.I(q)]