def METHOD_NAME(self, objects, pagination_metadata=None):
    commands = []
    for command in objects:
        commands.append({
            'id': command['_id'],
            'key': command['_id'],
            'value': command
        })
    return {
        'commands': commands,
    }