code: func UsingLegacyCadvisorStats(runtime, runtimeEndpoint string) bool {
  	return (runtime == kubetypes.DockerContainerRuntime && goruntime.GOOS == "linux") ||
  		runtimeEndpoint == CrioSocket || runtimeEndpoint == "unix://"+CrioSocket
  }
docs: // CRI integrations should get container metrics via CRI. Docker
  // uses the built-in cadvisor to gather such metrics on Linux for
  // historical reasons.
  // cri-o relies on cadvisor as a temporary workaround. The code should
  // be removed. Related issue:
  // https://github.com/kubernetes/kubernetes/issues/51798
  // UsingLegacyCadvisorStats returns true if container stats are provided by cadvisor instead of through the CRI