def METHOD_NAME(encoded_value: str) -> str:
    value, tz = encoded_value.split()
    microseconds = float(value)
    tzinfo = _generate_tzinfo_from_tzoffset(int(tz) - 1440)
    try:
        t = datetime.fromtimestamp(microseconds, tz=tzinfo)
    except OSError as e:
        logger.debug("OSError occurred but falling back to datetime: %s", e)
        t = ZERO_EPOCH + timedelta(seconds=microseconds)
        if pytz.utc != tzinfo:
            t += tzinfo.utcoffset(t)
        t = t.replace(tzinfo=tzinfo)
    fraction_of_nanoseconds = _adjust_fraction_of_nanoseconds(
        value, max_fraction, scale
    )
    return format_sftimestamp(ctx, t, fraction_of_nanoseconds)