code: def get_boolean_env(name, default):
      
      default = 'true' if default else 'false'
      return os.getenv(name, default).lower() in {'true', 'yes', 'y', '1'}
docs: Converts environment variables to boolean values, where truthy is defined as:
      ``value.lower() in {'true', 'yes', 'y', '1'}`` (everything else is falsy).