code: def _has_docker_cgroup_v2() -> bool:
      """
      cgroups v2 version, inspired from
      https://github.com/jenkinsci/docker-workflow-plugin/blob/master/src/main/java/org/jenkinsci/plugins/docker/workflow/client/DockerClient.java
      """
      path = "/proc/self/mountinfo"  # 'self' should be always symlinked to the actual PID
      return os.path.isfile(path) and any(
          "/docker/containers/" in line for line in open(path)
      )
  
file_path: haystack/haystack/telemetry/_environment.py
imports: import logging
  import os
  import platform
  import sys
  from typing import Optional, Dict, Any
  from haystack.version import __version__
label_desc: Use image node_id 4 for calling a global function with example usage: _has_docker_cgroup_v2() and returns: unknown