code: def make_source(
      benchmark_type, add_to_source_f, benchmark_results=None
  ):
      if not benchmark_results:
          benchmark_results = get_benchmark_results()
      source = {}
  
      for benchmark_name, benchmark in benchmark_results[
          "results_dict"
      ].items():
          if (
              isinstance(benchmark_type, list)
              and benchmark["benchmark_type"] in benchmark_type
          ) or benchmark["benchmark_type"] == benchmark_type:
              add_to_source_f(source, benchmark)
      return source
  
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 14 for calling a global function with example usage: make_source(benchmark_type, add_to_source_f, benchmark_results) and returns: source