human
Complete the below
def command(func):

    ''''Decorator to declare which methods are accessible as commands, commands
    always return 1 or 0, where 0 should indicate success.
    :param func: function to make public'
    '''
 Give me a the Python code you requested?
assistant
#Here is the Python code you requested.
    func.publicly_accessible = True
    @functools.wraps(func)
    def wrapped(*a, **kw):
        rv = func(*a, **kw)
        return (1 if rv else 0)
    return wrapped