code: def main():
      client = carla.Client("localhost", 2000)
      client.set_timeout(2.0)
      world = client.get_world()
      spectator = world.get_spectator()
      vehicle_blueprints = world.get_blueprint_library().filter(
          "vehicle"
      )
  
      location = random.choice(
          world.get_map().get_spawn_points()
      ).location
  
      for blueprint in vehicle_blueprints:
          transform = carla.Transform(
              location, carla.Rotation(yaw=-45.0)
          )
          vehicle = world.spawn_actor(blueprint, transform)
  
          try:
              print(vehicle.type_id)
  
              angle = 0
              while angle < 356:
                  timestamp = world.wait_for_tick().timestamp
                  angle += timestamp.delta_seconds * 60.0
                  spectator.set_transform(
                      get_transform(vehicle.get_location(), angle - 90)
                  )
  
          finally:
              vehicle.destroy()
  
file_path: carla/PythonAPI/examples/vehicle_gallery.py
imports: import glob
  import os
  import sys
  import carla
  import math
  import random
label_desc: Use image node_id 2 for calling a global function with example usage: main() without return types