code: def _decode_flag_val(s, flag_type=None):
      if s == "":
          return s
      decoders = _flag_decoders_for_type(flag_type)
      for f, e_type in decoders:
          try:
              return f(s)
          except e_type:
              pass
          except Exception as e:
              log.warning("error decoding %r: %s", s, e)
      return s
  
imports: import logging
  import os
  import re
  import yaml
  from guild import util
  from guild import yaml_util
label_desc: Use image node_id 6 for calling a global function with example usage: _decode_flag_val(s, flag_type) and returns: s, s, f