def _split_actors(actors_with_transforms):
    """Splits the retrieved actors by type id"""
    vehicles = []
    traffic_lights = []
    speed_limits = []
    walkers = []

    for actor_with_transform in actors_with_transforms:
        actor = actor_with_transform[0]
        if 'vehicle' in actor.type_id:
            vehicles.append(actor_with_transform)
        elif 'traffic_light' in actor.type_id:
            traffic_lights.append(actor_with_transform)
        elif 'speed_limit' in actor.type_id:
            speed_limits.append(actor_with_transform)
        elif 'walker.pedestrian' in actor.type_id:
            walkers.append(actor_with_transform)

    return (vehicles, traffic_lights, speed_limits, walkers)