def execute(self, capability, *args, **kwargs):
        if not kwargs['serial']:
            self.print_plugin_error("Error: serial port not set (not opened?)")
            return False

        result = False
        if self.check_parameters(capability, *args, **kwargs):
            if kwargs['serial']:
                if capability == 'jn51xx':
                    # Example:
                    # The device should be automatically reset before the programmer disconnects.
                    # Issuing a command with no file to program or read will put the device into 
                    # programming mode and then reset it. E.g.
                    # $ JN51xxProgrammer.exe -s COM5 -V0
                    # COM5: Detected JN5179 with MAC address 00:15:8D:00:01:24:E0:37
                    serial_port = kwargs['serial']
                    cmd = [self.JN51XX_PROGRAMMER,
                           '-s', serial_port,
                           '-V0'
                          ]
                    result = self.run_command(cmd)
        return result
! Executes capability by name
dataset/ETHPy150Open ARMmbed/htrun/mbed_host_tests/host_tests_plugins/module_reset_jn51xx.py/HostTestPluginResetMethod_JN51xx.execute