def parse_text_data(lines_or_path, delimiter=os.linesep):
if os.path.isfile(lines_or_path):<EOL><INDENT>with open(lines_or_path, '<STR_LIT:r>') as f:<EOL><INDENT>return f.readlines()<EOL><DEDENT><DEDENT>else:<EOL><INDENT>_LOGGER.debug("<STR_LIT>".format(lines_or_path))<EOL><DEDENT>if isinstance(lines_or_path, str):<EOL><INDENT>return lines_or_path.split(delimiter)<EOL><DEDENT>elif isinstance(lines_or_path, Iterable):<EOL><INDENT>return lines_or_path<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>".<EOL>format(lines_or_path, type(lines_or_path)))<EOL><DEDENT>
Interpret input argument as lines of data. This is intended to support
multiple input argument types to core model constructors.

:param str | collections.Iterable lines_or_path:
:param str delimiter: line separator used when parsing a raw string that's
    not a file
:return collections.Iterable: lines of text data
:raises ValueError: if primary data argument is neither a string nor
    another iterable