def execute(self, operation, *args, **kwargs):
<EOL>if type(operation) is str:<EOL><INDENT>try:<EOL><INDENT>cls = manager.OPERATIONS[operation]<EOL><DEDENT>except KeyError:<EOL><INDENT>raise ValueError('<STR_LIT>'<EOL>'<STR_LIT>' %<EOL>(operation, list(manager.OPERATIONS.keys())))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>cls = operation<EOL><DEDENT>return super().execute(cls, *args, **kwargs)<EOL>
execute

        High-level api: The fact that most connection classes implement
        execute method lead us to add this method here as well.
        Supported operations are get, get_config, get_schema, dispatch,
        edit_config, copy_config, validate, commit, discard_changes,
        delete_config, lock, unlock, close_session, kill_session,
        poweroff_machine and reboot_machine. Refer to ncclient document for
        more details.