code: def _to_bool(s):
      if s.lower().strip() in ("false", "0", "no"):
          return False
      else:
          return True
  
imports: import sys, os, re
  from _mathtext_data import uni2type1
label_desc: Use image node_id 3 for calling a global function with example usage: _to_bool(s) and returns: False, True