class_docstr: Context manager to synchronize output from different sensors. Synchronous
  mode is enabled as long as we are inside this context
  
      with CARLASyncContext(world, sensors) as sync_mode:
          while True:
              data = sync_mode.tick(timeout=1.0)
  
  This code is based on https://github.com/carla-simulator/carla/blob/master/PythonAPI/examples/synchronous_mode.py
class_docstr_tok: ["Context","manager","to","synchronize","output","from","different","sensors",".","Synchronous","mode","is","enabled","as","long","as","we","are","inside","this","context","with","CARLASyncContext","(","world",",","sensors",")","as","sync_mode",":","while","True",":","data","=","sync_mode.tick","(","timeout=1.0",")","This","code","is","based","on","https",":","\/\/github.com\/carla-simulator\/carla\/blob\/master\/PythonAPI\/examples\/synchronous_mode.py"]
docstr: Registers an even on its own queue identified by name
docstr_tok: ["Registers","an","even","on","its","own","queue","identified","by","name"]
code: def _add_queue(self, name, register_event):
      """Registers an even on its own queue identified by name"""
      q = queue.Queue()
      register_event(q.put)
      self._queues[name] = q
  
file_path: tensorforce/tensorforce/environments/carla/synchronous_mode.py
imports: import carla
  import queue
label_desc: Use image node_id 5 for calling the CARLASyncContext obj's underlying member method code with example usage: obj._add_queue(name, register_event) without return types