def METHOD_NAME(self, event: Any, timeout: Optional[float] = None) -> Any:
    """
    Make a request to the server, passing it the given JSON-serializable
    event as input, and returning the server's response as deserialized JSON.
    If the server misbehaves in any way, it is shut down.
    """
    try:
        res = requests.post(self.get_url(), json=event, timeout=timeout or self.timeout_secs)
        res.raise_for_status()
        return res.json()
    except Exception:
        logger.warning("Lambda process is misbehaving, shutting it down.")
        self.shutdown()
        raise