code: func IsIsolatorSupported(isolator string) (bool, error) {
  	isUnified, err := IsCgroupUnified("/")
  	if err != nil {
  		return false, errwrap.Wrap(errors.New("error determining cgroup version"), err)
  	}
  
  	if isUnified {
  		controllers, err := v2.GetEnabledControllers()
  		if err != nil {
  			return false, errwrap.Wrap(errors.New("error determining enabled controllers"), err)
  		}
  		for _, c := range controllers {
  			if c == isolator {
  				return true, nil
  			}
  		}
  		return false, nil
  	}
  	return v1.IsControllerMounted(isolator)
  }
docs: // IsIsolatorSupported returns whether an isolator is supported in the kernel