class_docstr: This is a module responsible for creating 3D bounding boxes and drawing them
  client-side on pygame surface.
class_docstr_tok: ["This","is","a","module","responsible","for","creating","3D","bounding","boxes","and","drawing","them","client-side","on","pygame","surface","."]
docstr: Transforms world coordinates to sensor.
docstr_tok: ["Transforms","world","coordinates","to","sensor","."]
code: def _world_to_sensor(cords, sensor):
      """
      Transforms world coordinates to sensor.
      """
  
      sensor_world_matrix = ClientSideBoundingBoxes.get_matrix(
          sensor.get_transform()
      )
      world_sensor_matrix = np.linalg.inv(sensor_world_matrix)
      sensor_cords = np.dot(world_sensor_matrix, cords)
      return sensor_cords
  
imports: import glob
  import os
  import sys
  import carla
  import weakref
  import random
label_desc: Use image node_id 7 for calling the ClientSideBoundingBoxes obj's underlying member method code with example usage: obj._world_to_sensor(cords, sensor) and returns: sensor_cords