code: def test_apply_batch_sync(self):
      print("TestSynchronousMode.test_apply_batch_sync")
  
      a_t0, a_t1 = self.batch_scenario(False, False)
      self.assertEqual(
          a_t0,
          a_t1,
          "Something has failed with the apply_batch_sync. These frames should be equal: %d %d"
          % (a_t0, a_t1),
      )
  
      a_t0, a_t1 = self.batch_scenario(True, False)
      self.assertEqual(
          a_t0 + 1,
          a_t1,
          "Something has failed with the apply_batch_sync. These frames should be consecutive: %d %d"
          % (a_t0, a_t1),
      )
  
      a_t0, a_t1 = self.batch_scenario(False, True)
      self.assertEqual(
          a_t0 + 1,
          a_t1,
          "Something has failed with the apply_batch_sync. These frames should be consecutive: %d %d"
          % (a_t0, a_t1),
      )
  
file_path: carla/PythonAPI/test/smoke/test_sync.py
imports: from .None import SyncSmokeTest
  import carla
  import time
label_desc: Use image node_id 5 for calling the TestSynchronousMode obj's underlying member method code with example usage: obj.test_apply_batch_sync() without return types