code: def rpc_reply(id: Union[str, int], result: Optional[object],
                warnings: Optional[List[Warning]] = None) -> rpcq.messages.RPCReply:
      
      warnings = warnings or []
  
      return rpcq.messages.RPCReply(
          jsonrpc='2.0',
          id=id,
          result=result,
          warnings=[rpc_warning(warning) for warning in warnings]
      )
docs: Create RPC reply
  
      :param str|int id: Request ID
      :param result: Result
      :param warnings: List of warnings to attach to the message
      :return: JSON RPC formatted dict