```collections.Iterable``` might be more appropriate in order to allow one to pass in a generator of dimensions.