code: def spawn_vehicles(self, world, blueprint_transform_list):
      traffic_manager = self.client.get_trafficmanager(TM_PORT)
      vehicle_actor_list = []
  
      SpawnActor = carla.command.SpawnActor
      SetAutopilot = carla.command.SetAutopilot
      FutureActor = carla.command.FutureActor
  
      batch = []
      for blueprint, transform in blueprint_transform_list:
          batch.append(
              SpawnActor(blueprint, transform).then(
                  SetAutopilot(
                      FutureActor, True, traffic_manager.get_port()
                  )
              )
          )
  
      vehicle_actor_ids = []
      for response in self.client.apply_batch_sync(batch, True):
          if not response.error:
              vehicle_actor_ids.append(response.actor_id)
  
      vehicle_actor_list = world.get_actors(vehicle_actor_ids)
  
      return vehicle_actor_list
  
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 2 for calling the TestDeterminism obj's underlying member method code with example usage: obj.spawn_vehicles(world, blueprint_transform_list) and returns: vehicle_actor_list