code: def add_time_n_tasks_source(source, benchmark, number_of_cores):
      number_of_engines = benchmark["engines"]
      scheduler_type = benchmark["scheduler_type"]
      for duration, tasks_num, delay in [
          (
              result.duration_in_ms,
              result.number_of_tasks,
              seconds_to_ms(result.delay),
          )
          for result in benchmark["results"]
          if not result.failed
      ]:
          ensure_time_n_tasks_source_structure(
              source, delay, number_of_cores, scheduler_type
          )
          dict_to_append_to = source[delay][number_of_cores][
              scheduler_type
          ]
          dict_to_append_to["Duration in ms"].append(duration)
          dict_to_append_to["Number of tasks"].append(tasks_num)
          dict_to_append_to["Number of engines"].append(
              number_of_engines
          )
  
imports: import json
  import os
  import pickle
  import re
  from datetime import datetime
  from enum import Enum
  from itertools import product
  from utils import seconds_to_ms
  from benchmarks.constants import DEFAULT_NUMBER_OF_ENGINES
label_desc: Use image node_id 7 for calling a global function with example usage: add_time_n_tasks_source(source, benchmark, number_of_cores) without return types