def test_get_model_by_dict_with_init_args() -> None:
        """Test get_model by dict with init args."""
        model = get_model({"class_path": "Padim", "init_args": {"backbone": "wide_resnet50_2"}})
        assert isinstance(model, Padim)
        model = get_model({"class_path": "Patchcore"}, backbone="wide_resnet50_2")
        assert isinstance(model, Patchcore)
Test get_model by dict with init args.
tests/unit/models/test_model_utils.py