def METHOD_NAME(response: bytes, ack: bytes) -> Optional[bytes]:
    if ack in response:
        parsed_response = response.split(ack)[0]
        return parsed_response.strip()
    else:
        return None