code: def _has_dockerenv() -> bool:
      """
      This might not work anymore at some point (even if it's been a while now), see:
      https://github.com/moby/moby/issues/18355#issuecomment-220484748
      """
      return os.path.exists("/.dockerenv")
  
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 2 for calling a global function with example usage: _has_dockerenv() and returns: os