@staticmethod
def check_code(code):
    """ Check is code is authorized """
    if 'input' in code:
        return '', 'input command is not allowed'
    elif 'reset' in code:
        return 'reset -f', 'Resetting namespace...'
    else:
        return code, None
