code: def run_scenario(
      world,
      bp_veh,
      init_loc,
      init_speed=0.0,
      init_frames=10,
      controls=[(150, carla.VehicleControl(), VehicleControlStop())],
      apply_phys_control=None,
  ):
      veh_transf = init_loc
  
      vehicle = world.spawn_actor(bp_veh, veh_transf)
      wait(world, 10)
  
      data = TelemetryData(
          world.get_snapshot().elapsed_seconds, vehicle
      )
  
      # Initialization at init_speed
      vehicle.enable_constant_velocity(carla.Vector3D(init_speed, 0, 0))
      wait(world, init_frames)
      vehicle.disable_constant_velocity()
      wait(world, 1)
  
      for i_control in controls:
          control_frames = i_control[0]
          control = i_control[1]
          stopper = i_control[2]
  
          data.add_telemetry(
              world.get_snapshot().elapsed_seconds, vehicle
          )
  
          # Apply control
          vehicle.apply_control(control)
          for _i in range(0, control_frames):
              world.tick()
              check = stopper.stop_control(vehicle)
              if check:
                  break
  
      data.add_telemetry(world.get_snapshot().elapsed_seconds, vehicle)
  
      wait(world, 10)
      vehicle.destroy()
  
      return data
  
imports: import glob
  import os
  import sys
  import argparse
  import time
  import numpy
  import carla
label_desc: Use image node_id 5 for calling a global function with example usage: run_scenario(world, bp_veh, init_loc, init_speed, init_frames, controls, apply_phys_control) and returns: data