code: def _parse_list(cls, value, separator=','):
          
          if isinstance(value, list):  # _get_parser_compound case
              return value
  
          if '\n' in value:
              value = value.splitlines()
          else:
              value = value.split(separator)
  
          return [chunk.strip() for chunk in value if chunk.strip()]
docs: Represents value as a list.
  
          Value is split either by separator (defaults to comma) or by lines.
  
          :param value:
          :param separator: List items separator character.
          :rtype: list