def _is_list(self, list_or_slice):
        return not hasattr(list_or_slice, 'step')
Determines if an object is a list or a slice.
dataset/ETHPy150Open mila-udem/fuel/fuel/utils/__init__.py/Subset._is_list