code: def detach(self, force=False):
          instance_id = None
          if self.attach_data:
              instance_id = self.attach_data.instance_id
          device = None
          if self.attach_data:
              device = self.attach_data.device
          return self.connection.detach_volume(self.id, instance_id, device, force)