code: def compare_records(self, record1_list, record2_list):
      record1_size = len(record1_list)
      record2_size = len(record2_list)
      self.assertEqual(
          record1_size, record2_size, msg="Record size missmatch"
      )
      for i in range(0, record1_size):
          frame_errors = 0
          record1 = record1_list[i]
          record2 = record2_list[i]
          self.assertEqual(
              record1.frame, record2.frame, msg="Frame missmatch"
          )
          num_actors1 = len(record1.vehicle_position_list)
          num_actors2 = len(record2.vehicle_position_list)
          self.assertEqual(
              num_actors1, num_actors2, msg="Number of actors mismatch"
          )
          for j in range(0, num_actors1):
              loc1 = record1.vehicle_position_list[j]
              loc2 = record2.vehicle_position_list[j]
              self.assertEqual(
                  loc1,
                  loc2,
                  msg="Actor location missmatch at frame %s. %s != %s"
                  % (str(record1.frame), str(loc1), str(loc2)),
              )
  
file_path: carla/PythonAPI/test/smoke/test_determinism.py
imports: from numpy import random
  from .None import SmokeTest
  import time
  import carla
label_desc: Use image node_id 1 for calling the TestDeterminism obj's underlying member method code with example usage: obj.compare_records(record1_list, record2_list) without return types