code: def _test_camera_on_synchronous_mode(self):
      print("TestSynchronousMode.test_camera_on_synchronous_mode")
  
      cam_bp = self.world.get_blueprint_library().find(
          "sensor.camera.rgb"
      )
      t = carla.Transform(carla.Location(z=10))
      camera = self.world.spawn_actor(cam_bp, t)
      try:
          image_queue = Queue()
          camera.listen(image_queue.put)
  
          frame = None
  
          for _ in range(0, 100):
              self.world.tick()
              ts = self.world.get_snapshot().timestamp
  
              if frame is not None:
                  self.assertEqual(ts.frame, frame + 1)
  
              frame = ts.frame
  
              image = image_queue.get()
              self.assertEqual(image.frame, ts.frame)
              self.assertEqual(image.timestamp, ts.elapsed_seconds)
  
      finally:
          camera.destroy()
  
file_path: carla/PythonAPI/test/smoke/test_sync.py
imports: from .None import SyncSmokeTest
  import carla
  import time
label_desc: Use image node_id 2 for calling the TestSynchronousMode obj's underlying member method code with example usage: obj._test_camera_on_synchronous_mode() without return types