add test to enforce infinite buffer size for all applicable datapipes (#5707)
add test to enforce infinite buffer size for all applicable datapipes (#5707)

* add test to enforce infinite buffer size for all applicable datapipes

* use utility function to extract datapipes

* check for buffer_size attr rather than type

* simplify
pytorch/vision,pytorch/vision,pytorch/vision,pytorch/vision,pytorch/vision,pytorch/vision