code: def coerce_boolean(val: str) -> bool:
      return val == "true" or val == "1" or val == "on"
  
imports: from __future__ import annotations
  import os
  import re
  import inspect
  import functools
  from typing import Any, Tuple, Mapping, TypeVar, Callable, Iterable, Sequence, cast, overload
  from pathlib import Path
  from typing_extensions import TypeGuard
  import sniffio
  from .._types import Headers, NotGiven, FileTypes, NotGivenOr, HeadersLike
  from .._compat import parse_date, parse_datetime
label_desc: Use image node_id 23 for calling a global function with example usage: coerce_boolean(val) and returns: unknown