import typing


def transform_any_str_list(data: typing.Any) -> typing.List[str]:
    """
    Helper function for transforming any type to an list of strings split by "\n"
    :param data: the data to transform
    :return: the transformed data
    """
    if type(data) == str:
        return data.split("\n")
    if type(data) == list:
        return data
    return str(data).split("\n")