def METHOD_NAME(head: Object) -> Iterator[Object]:
    """
    Iterate over all of the nodes in a list.
    :param head: ``struct list_head *``
    :return: Iterator of ``struct list_head *`` objects.
    """
    head = head.read_()
    pos = head.next.read_()
    while pos != head:
        yield pos
        pos = pos.next.read_()