@magic.line_magic
    @magic_arguments()
    @argument('-a', '--arm', action='store_true', help='Try to reset the ARM CPU as well')
    def reset(self, line=''):
        args = parse_argstring(self.reset, line)
        d = self.shell.user_ns.get('d_remote')

        if not d:
            # Recover from starting up without a device
            d = remote.Device()
            self.shell.user_ns['d_remote'] = d
            self.shell.user_ns['d'] = d

        d.reset()
        if args.arm:
            reset_arm(d)
Reset and reopen the USB interface.
dataset/ETHPy150Open scanlime/coastermelt/backdoor/shell_magics.py/ShellMagics.reset