def METHOD_NAME(self) -> None:
    self.handle = self.device.METHOD_NAME()
    if self.handle is None:
        if sys.platform.startswith("linux"):
            args = (UDEV_RULES_STR,)
        else:
            args = ()
        raise IOError("Cannot open device", *args)
    self.handle.claimInterface(self.interface)