code: def CallMethod(self, method, controller, request, response_class, done):
          '''Call the RPC method. The naming doesn't confirm PEP8, since it's
          a method called by protobuf
          '''
          try:
              self.validate_request(request)
  
              if not self.sock:
                  self.get_connection(self.host, self.port)
  
              self.send_rpc_message(method, request)
  
              byte_stream = self.recv_rpc_message()
              return self.parse_response(byte_stream, response_class)
          except RequestError:  # Raise a request error, but don't close the socket
              raise
          except Exception:  # All other errors close the socket
              self.close_socket()
              raisf CallMethod(self, method, controller, request, response_class, done):
          '''Call the RPC method. The naming doesn't confirm PEP8, since it's
          a method called by protobuf
          '''
          try:
              self.validate_request(request)
  
              if not self.sock:
                  self.get_connection(self.host, self.port)
  
              self.send_rpc_message(method, request)
  
              byte_stream = self.recv_rpc_message()
              return self.parse_response(byte_stream, response_class)
          except RequestError:  # Raise a request error, but don't close the socket
              raise
          except Exception:  # All other errors close the socket
              self.close_socket()
              raise
docs: Call the RPC method. The naming doesn't confirm PEP8, since it's
          a method called by protobuf