code: def _coerce_list(val, desc):
      if val is None:
          return []
      if isinstance(val, str):
          return [val]
      if isinstance(val, list):
          return val
      raise ResourceFormatError(f"invalid {desc} val: {val}")
  
imports: import collections
  import copy
  import logging
  import operator
  import pprint
  from guild import util
label_desc: Use image node_id 13 for calling a global function with example usage: _coerce_list(val, desc) and returns: list, list, val