code: func validateCgroupSpec(cgroupSpec *Spec) error {
  	if cgroupSpec == nil {
  		return errors.New("cgroup spec validator: empty cgroup spec")
  	}
  
  	if cgroupSpec.Root == "" {
  		return errors.New("cgroup spec validator: invalid cgroup root")
  	}
  
  	// Validate the linux resource specs
  	if cgroupSpec.Specs == nil {
  		return errors.New("cgroup spec validator: empty linux resource spec")
  	}
  	return nil
  }
docs: // validateCgroupSpec checks the cgroup spec for valid path and specifications