def open(self, usb_args):
self.device = usb.core.find(**usb_args)<EOL>if self.device is None:<EOL><INDENT>raise USBNotFoundError("<STR_LIT>")<EOL><DEDENT>self.idVendor = self.device.idVendor<EOL>self.idProduct = self.device.idProduct<EOL>check_driver = None<EOL>try:<EOL><INDENT>check_driver = self.device.is_kernel_driver_active(<NUM_LIT:0>)<EOL><DEDENT>except NotImplementedError:<EOL><INDENT>pass<EOL><DEDENT>if check_driver is None or check_driver:<EOL><INDENT>try:<EOL><INDENT>self.device.detach_kernel_driver(<NUM_LIT:0>)<EOL><DEDENT>except usb.core.USBError as e:<EOL><INDENT>if check_driver is not None:<EOL><INDENT>print("<STR_LIT>".format(str(e)))<EOL><DEDENT><DEDENT><DEDENT>try:<EOL><INDENT>self.device.set_configuration()<EOL>self.device.reset()<EOL><DEDENT>except usb.core.USBError as e:<EOL><INDENT>print("<STR_LIT>".format(str(e)))<EOL><DEDENT>
Search device on USB tree and set it as escpos device.

        :param usb_args: USB arguments