code: def accel_scenario(world, bp_veh, max_vel):
      spectator_transform = carla.Transform(
          carla.Location(20, -190, 10),
          carla.Rotation(yaw=67, pitch=-13),
      )
      try:
          spectator = world.get_spectator()
          spectator.set_transform(spectator_transform)
      except:
          print("No spectator")
  
      init_loc = carla.Transform(
          carla.Location(32, -180, 0.5), carla.Rotation(yaw=90)
      )
  
      controls = [
          (
              1000,
              carla.VehicleControl(throttle=1.0),
              VehicleControlStop(speed_max=max_vel / 3.6),
          )
      ]
  
      data = run_scenario(
          world, bp_veh, init_loc=init_loc, controls=controls
      )
  
      delta = data.get_scalar_delta(1)
      end_vel = 3.6 * norm(data.get_telemetry(2).velocity)
      print(
          "  0 -> %.0f km/h: (%.1f s, %.1f m)"
          % (max_vel, delta[0], delta[1]),
          end="",
      )
  
imports: import glob
  import os
  import sys
  import argparse
  import time
  import numpy
  import carla
label_desc: Use image node_id 7 for calling a global function with example usage: accel_scenario(world, bp_veh, max_vel) without return types