    def iter(self: Params[t.Iterable[Ti]]) -> t.Iterator[Params[Ti]]:
        """
        Iter over a Params of iterable values into a list of Params. All values should
        have the same length.
        """

        iter_params = self.map(iter)
        try:
            while True:
                args = tuple(next(a) for a in iter_params.args)
                kwargs = {k: next(v) for k, v in iter_params.kwargs.items()}
                yield Params(*args, **kwargs)
        except StopIteration:
            pass
Iter over a Params of iterable values into a list of Params. All values should
have the same length.
src/bentoml/_internal/runner/utils.py