code: def in_use(self):
          
          if self.is_mounted or self.is_unlocked:
              return True
          if self.is_partition_table:
              for device in self._daemon:
                  if device.partition_slave == self and device.in_use:
                      return True
          return False
docs: Check whether this device is in use, i.e. mounted or unlocked.