code: def get_response(response: Dict[str, Any]) -> JSONRPCResponse:
      
      if "error" in response:
          return ErrorResponse(**response)
      return SuccessResponse(**response)
docs: Converts a deserialized response into a JSONRPCResponse object.
  
      The dictionary be either an error or success response, never a notification.
  
      Args:
          response: Deserialized response dictionary. We can assume the response is valid
              JSON-RPC here, since it passed the jsonschema validation.