code: def translate_stringlist(val):
      '''
      On the CLI, these are passed as multiple instances of a given CLI option.
      In Salt, we accept these as a comma-delimited list but the API expects a
      Python list. This function accepts input and returns it back as a Python
      list of strings. If the input is a string which is a comma-separated list
      of items, split that string and return it.
      '''
      if not isinstance(val, list):
          try:
              val = split(val)
          except AttributeError:
              val = split(six.text_type(val))
      for idx in range(len(val)):
          if not isinstance(val[idx], six.string_types):
              val[idx] = six.text_type(val[idx])
      return vaf translate_stringlist(val):
      '''
      On the CLI, these are passed as multiple instances of a given CLI option.
      In Salt, we accept these as a comma-delimited list but the API expects a
      Python list. This function accepts input and returns it back as a Python
      list of strings. If the input is a string which is a comma-separated list
      of items, split that string and return it.
      '''
      if not isinstance(val, list):
          try:
              val = split(val)
          except AttributeError:
              val = split(six.text_type(val))
      for idx in range(len(val)):
          if not isinstance(val[idx], six.string_types):
              val[idx] = six.text_type(val[idx])
      return val
docs: On the CLI, these are passed as multiple instances of a given CLI option.
      In Salt, we accept these as a comma-delimited list but the API expects a
      Python list. This function accepts input and returns it back as a Python
      list of strings. If the input is a string which is a comma-separated list
      of items, split that string and return it.