code: def to_boolean(astring: str | None) -> bool:
      """Convert a string to a boolean."""
      if astring is None:
          return False
      if astring.lower() in TRUE_LIKE_VALUES:
          return True
      return False
  
imports: from __future__ import annotations
  import random
  import string
label_desc: Use image node_id 2 for calling a global function with example usage: to_boolean(astring) and returns: False, False, True