code: def _is_containerized() -> Optional[bool]:
      """
      This code is based on the popular 'is-docker' package for node.js
      """
      global _IS_DOCKER_CACHE
  
      if _IS_DOCKER_CACHE is None:
          _IS_DOCKER_CACHE = (
              _in_podman()
              or _has_dockerenv()
              or _has_docker_cgroup_v1()
              or _has_docker_cgroup_v2()
          )
  
      return _IS_DOCKER_CACHE
  
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 5 for calling a global function with example usage: _is_containerized() and returns: _IS_DOCKER_CACHE