def METHOD_NAME(busted_pickler: ModuleType):
    with pytest.raises(ValueError, match="Failed to import requested pickle library"):
        PickleSerializer(picklelib="not-even-valid-identifier")
    with pytest.raises(ValueError, match="does not have a 'dumps'"):
        PickleSerializer(picklelib="busted_pickler")
    setattr(busted_pickler, "dumps", lambda: "wat")
    with pytest.raises(ValueError, match="does not have a 'loads'"):
        PickleSerializer(picklelib="busted_pickler")
    setattr(busted_pickler, "loads", lambda: "wat")
    serializer = PickleSerializer(picklelib="busted_pickler")
    assert serializer.picklelib == "busted_pickler"