Perhaps we should add tests for `sequence_to_str`, so as to ensure that our error message are properly formatted ? Also nit but if we're going to have such a helper, we could handle the case `a, and b` -> `a and b` (i.e. remove the comma if len == 2 _Originally posted by @NicolasHug in https://github.com/pytorch/vision/pull/5187#discussion_r784852697_ cc @bjuncek