def is_dataset(obj):
    """Verfy if a object is ``dataset-like`` defined in
    :class:`torch.utils.data.Dataset`.

    Args:
        obj: Object to be determined.

    Returns:
        bool: True for ``dataset-like`` object, false otherwise.

    """
    return hasattr(obj, '__getitem__') and hasattr(obj, '__len__')
