import pytest


def parametrize(name, **kwargs):
    names = name.split(",") if isinstance(name, str) else name

    ids = [f"{key} {kwargs[key]}" for key in kwargs]
    values = [tuple(kwargs[key].values()) for key in kwargs]

    return pytest.mark.parametrize(names, values, ids=ids)
