code: def ensure_time_n_tasks_source_structure(
      datasource, delay, number_of_cores, scheduler_type
  ):
      if delay not in datasource:
          datasource[delay] = {
              number_of_cores: {scheduler_type: get_value_dict()}
          }
      elif number_of_cores not in datasource[delay]:
          datasource[delay][number_of_cores] = {
              scheduler_type: get_value_dict()
          }
      elif scheduler_type not in datasource[delay][number_of_cores]:
          datasource[delay][number_of_cores][
              scheduler_type
          ] = get_value_dict()
  
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 6 for calling a global function with example usage: ensure_time_n_tasks_source_structure(datasource, delay, number_of_cores, scheduler_type) without return types