def METHOD_NAME(
    tmp_path: Path, input: Dict, kwargs: Dict[Text, bool], expected: Dict
):
    file_name = tmp_path / "bla.pkl"
    rasa.utils.io.json_pickle(file_name=file_name, obj=input, **kwargs)
    loaded = rasa.utils.io.json_unpickle(file_name=file_name, **kwargs)
    assert loaded == expected