code: def check_simulations(self, rep_prefixes, gen_prefix):
      repetitions = len(rep_prefixes)
      mat_check = np.zeros((repetitions, repetitions), int)
  
      for i in range(0, repetitions):
          mat_check[i][i] = 1
          for j in range(0, i):
              sim_check = True
              for actor in self.scene.actor_list:
                  actor_id = actor[0]
                  file_i = self.scene.get_filename_with_prefix(
                      rep_prefixes[i], actor_id
                  )
                  file_j = self.scene.get_filename_with_prefix(
                      rep_prefixes[j], actor_id
                  )
  
                  check_ij = self.compare_files(file_i, file_j)
                  sim_check = sim_check and check_ij
              mat_check[i][j] = int(sim_check)
              mat_check[j][i] = int(sim_check)
  
      determinism = np.sum(mat_check, axis=1)
      # max_rep_equal = np.amax(determinism)
      max_rep_equal_idx = np.argmax(determinism)
      min_rep_equal_idx = np.argmin(determinism)
  
      determinism_set = list(set(determinism))
      determinism_set.sort(reverse=True)
  
      # print(determinism)
      # print(np.argmax(determinism))
      # print(np.argmin(determinism))
  
      self.save_simulations(
          rep_prefixes, gen_prefix, max_rep_equal_idx, min_rep_equal_idx
      )
  
      return determinism_set
  
imports: import glob
  import os
  import sys
  import argparse
  import time
  import filecmp
  import shutil
  import numpy
  import carla
label_desc: Use image node_id 3 for calling the CollisionScenarioTester obj's underlying member method code with example usage: obj.check_simulations(rep_prefixes, gen_prefix) and returns: determinism_set