def as_lines(content):
    """This function splits given ``content`` into lines if it's a string or
    returns it as is if it's a list.

    Args:
        content: String or list of strings.

    Returns:
        List of strings.
    """
    if isinstance(content, list):
        return content
    return content.split('\n')