code: async def get_offers(connection: Connection) -> dict:
          
          if not hasattr(Credential.get_offers, "cb"):
              Credential.get_offers.cb = create_cb(CFUNCTYPE(None, c_uint32, c_uint32, c_char_p))
  
          c_connection_handle = c_uint32(connection.handle)
  
          data = await do_call('vcx_credential_get_offers',
                               c_connection_handle,
                               Credential.get_offers.cb)
  
          return json.loads(data.decode())
docs: Retrieves all pending credential offers for a given connection.
          :param connection: A connection handle
          :return: A list of dictionary objects representing offers from a given connection.
          Example:
          credential = await Credential.create_with_msgid(source_id, connection, msg_id)
          offers = await credential.get_offers(connection)