def is_lazy(iterable: Iterable[A]) -> bool:
    """
    Checks if the given iterable is lazy,
    which here just means it's not a list.
    """
    return not isinstance(iterable, list)
Checks if the given iterable is lazy,
which here just means it's not a list.
allennlp/common/util.py