code: func findResources(isolators types.Isolators) (mem, cpus int64) {
  	for _, i := range isolators {
  		switch v := i.Value().(type) {
  		case *types.ResourceMemory:
  			mem = v.Limit().Value()
  			// Convert bytes into megabytes
  			mem /= 1024 * 1024
  		case *types.ResourceCPU:
  			cpus = v.Limit().Value()
  		}
  	}
  	return mem, cpus
  }
docs: // findResources finds value of last isolator for particular type.