def METHOD_NAME(sample_model: model.Model) -> None:
    sample_model.metadata = {"test": "test"}
    responses.patch(re.compile(f"{_MASTER}/api/v1/models/{sample_model.name}.*"), status=400)
    try:
        sample_model.remove_metadata(["test"])
        raise AssertionError("Server's 400 should raise an exception")
    except api.errors.APIException:
        assert "test" in sample_model.metadata