code: def list_split(val, split_on_comma=True):
      
      if not split_on_comma:
          return val
      new_val = []
      for subval in val:
          # This may happen when re-serializing
          if isinstance(subval, list):
              continue
          new_val.extend(subval.split(','))
      return new_val
docs: Try to split each member of a list with comma separator.
      If we don't have to split just return val
  
      :param val: value to split
      :type val:
      :param split_on_comma:
      :type split_on_comma: bool
      :return: list with members split on comma
      :rtype: list
  
      >>> list_split(['a,b,c'], False)
      ['a,b,c']
  
      >>> list_split(['a,b,c'])
      ['a', 'b', 'c']
  
      >>> list_split('')
      []