<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_list_stories( list_id_stories, number_of_stories, shuffle, max_threads ):
 """Show in a formatted way the stories for each item of the list."""


    list_stories = []
    with ThreadPoolExecutor(max_workers=max_threads) as executor:
        futures = {
            executor.submit(get_story, new)
            for new in list_id_stories[:number_of_stories]
        }

        for future in tqdm(
            as_completed(futures),
            desc='Getting results',
            unit=' news',
        ):
            list_stories.append(future.result())

    if shuffle:
        random.shuffle(list_stories)
    return list_stories