code: def teardown(self):
          '''Teardown device service cluster group.'''
  
          self.ensure_all_devices_in_sync()
          for device in self.devices:
              self._delete_device_from_device_group(device)
              self._sync_to_group(device)
              pollster(self._ensure_device_active)(device)
              self.ensure_all_devices_in_sync()
          dg = pollster(self._get_device_group)(self.devices[0])
          dg.delete()
          pollster(self._check_devices_active_licensed)()
          pollster(self._check_all_devices_in_sync)(f teardown(self):
          '''Teardown device service cluster group.'''
  
          self.ensure_all_devices_in_sync()
          for device in self.devices:
              self._delete_device_from_device_group(device)
              self._sync_to_group(device)
              pollster(self._ensure_device_active)(device)
              self.ensure_all_devices_in_sync()
          dg = pollster(self._get_device_group)(self.devices[0])
          dg.delete()
          pollster(self._check_devices_active_licensed)()
          pollster(self._check_all_devices_in_sync)()
docs: Teardown device service cluster group.