code: def _has_docker_cgroup_v1() -> bool:
      """
      This only works with cgroups v1
      """
      path = "/proc/self/cgroup"  # 'self' should be always symlinked to the actual PID
      return os.path.isfile(path) and any(
          "docker" 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 3 for calling a global function with example usage: _has_docker_cgroup_v1() and returns: unknown