code: def _offload_service_containers(self, service):
          
          if not isinstance(service, Service):
              raise TypeError("service must be an instance of Service")
  
          if service.containers:
              for key in list(service.containers.keys()):
                  if key in service.containers:
                      del service.containers[key]
docs: :param service:
          :return: