def assert_type_str_or_list(df, variable, name_arg):
    """This function asserts if variable is a string or a list dataType."""
    assert isinstance(variable, (str, list)
        ), 'Error: %s argument must be a string or a list.' % name_arg
