code: def hide_bundle_services(self, bundle):
          
          with self.__svc_lock:
              try:
                  svc_refs = self.__bundle_svc.pop(bundle)
              except KeyError:
                  # Nothing to do
                  return set()
              else:
                  # Clean the registry
                  specs = set()
                  for svc_ref in svc_refs:
                      if svc_ref.is_factory():
                          continue
  
                      # Remove direct references
                      self.__pending_services[svc_ref] = self.__svc_registry.pop(
                          svc_ref
                      )
                      specs.update(svc_ref.get_property(OBJECTCLASS))
  
                      # Clean the specifications cache
                      for spec in svc_ref.get_property(OBJECTCLASS):
                          spec_services = self.__svc_specs[spec]
                          # Use bisect to remove the reference (faster)
                          idx = bisect.bisect_left(spec_services, svc_ref)
                          del spec_services[idx]
                          if not spec_services:
                              del self.__svc_specs[spec]
  
              return svc_refs
docs: Hides the services of the given bundle (removes them from lists, but
          lets them be unregistered)
  
          :param bundle: The bundle providing services
          :return: The references of the hidden services