code: def ensure_list(thing):
      """
      Wrap ``thing`` in a list if it's a single str.
  
      Otherwise, return it unchanged.
      """
  
      if isinstance(thing, str_types):
          return [thing]
      return thing
  
imports: import itertools
  import json
  import pkgutil
  import re
  from jsonschema.compat import MutableMapping, str_types, urlsplit
label_desc: Use image node_id 8 for calling a global function with example usage: ensure_list(thing) and returns: thing, list