code: def env_bool(key, default):
      if key in os.environ:
          return (
              True
              if os.environ[key].lower() == "true"
              or os.environ[key] == "1"
              else False
          )
      return default
  
file_path: ray/python/ray/_private/ray_constants.py
imports: import logging
  import os
  import sys
  import json
label_desc: Use image node_id 2 for calling a global function with example usage: env_bool(key, default) and returns: default, unknown