code: def coerce_bool_value(value: str | bool) -> bool:
      if isinstance(value, bool):
          return value
      elif not value:  # handle "" and other false-y coerce-able values
          return False
      else:
          return value[0].lower() in ["t", "y"]
  
imports: from __future__ import annotations
  from typing import Iterable
label_desc: Use image node_id 1 for calling a global function with example usage: coerce_bool_value(value) and returns: value, False, unknown