def METHOD_NAME(value: bytes) -> str:
    """
    Compresses a value for safe passage as a string.
    This returns a unicode string rather than bytes, as the Django ORM works
    with unicode objects.
    """
    return base64.b64encode(zlib.METHOD_NAME(value)).decode("utf-8")