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