def sql_in(query=None, values_list=None):
    """
    Transform the list in values_list to be used inside a IN statement of the SQL.
    Example:
        values_list = [1,2,3,4,5]
        query = 'select * from database where' + sql_in(" col in", values_list)

        "select * from database where col in (1, 2, 3, 4, 5)"


    :param query: Query header with the first part of the query
    :param values_list: list to be transformed as a IN format
    :return: query concatenated with values_list as a IN format
    """
    if values_list is None:
        return ''
    if not isinstance(values_list, list):
        values_list = [values_list]
    separated_list = str(values_list).replace('[', '(').replace(']', ')')
    if query is None:
        return separated_list
    else:
        return query + ' ' + separated_list
