code: def coerce_to_list(val):
      
      if val:
          if not isinstance(val, (list, tuple)):
              val = [val]
      else:
          val = []
      return val
docs: For parameters that can take either a single string or a list of strings,
      this function will ensure that the result is a list containing the passed
      values.