code: def _boolean_type(s):
      val = yaml_util.decode_yaml(s)
      if isinstance(val, (bool, int, float)):
          return bool(val)
      return val
  
imports: import logging
  import os
  import re
  import yaml
  from guild import util
  from guild import yaml_util
label_desc: Use image node_id 10 for calling a global function with example usage: _boolean_type(s) and returns: val, bool