code: def _is_legal_flag_val(val):
      return val is None or isinstance(
          val, (str, int, float, bool, list)
      )
  
imports: import logging
  import os
  from guild import guildfile
  from guild import op_util
  from guild import plugin
  from guild import util
  from .None import flags_import_util
label_desc: Use image node_id 10 for calling a global function with example usage: _is_legal_flag_val(val) and returns: unknown