code: def eval_env(var, default):
      """Check if environment varable has True-y value"""
      if var not in os.environ:
          return default
  
      val = os.environ.get(var, "0")
      trues = ["1", "true", "TRUE", "on", "ON", "yes", "YES"]
      falses = ["0", "false", "FALSE", "off", "OFF", "no", "NO"]
      if val in trues:
          return True
      if val not in falses:
          # fmt: off
          raise RuntimeError(
              f"Unexpected environment variable value `{var}={val}`. "
              f"Expected one of {trues + falses}")
          # fmt: on
      return False
  
file_path: audio/src/torchaudio/_internal/module_utils.py
imports: import importlib.util
  import os
  import warnings
  from functools import wraps
  from typing import Optional
label_desc: Use image node_id 1 for calling a global function with example usage: eval_env(var, default) and returns: False, default, True