class_docstr: Basic implementation of a synchronous client.
class_docstr_tok: ["Basic","implementation","of","a","synchronous","client","."]
docstr: Transforms image from camera sensor and blits it to main pygame display.
docstr_tok: ["Transforms","image","from","camera","sensor","and","blits","it","to","main","pygame","display","."]
code: def render(self, display):
      """
      Transforms image from camera sensor and blits it to main pygame display.
      """
  
      if self.image is not None:
          array = np.frombuffer(
              self.image.raw_data, dtype=np.dtype("uint8")
          )
          array = np.reshape(
              array, (self.image.height, self.image.width, 4)
          )
          array = array[:, :, :3]
          array = array[:, :, ::-1]
          surface = pygame.surfarray.make_surface(array.swapaxes(0, 1))
          display.blit(surface, (0, 0))
  
imports: import glob
  import os
  import sys
  import carla
  import weakref
  import random
label_desc: Use image node_id 8 for calling the BasicSynchronousClient obj's underlying member method code with example usage: obj.render(display) without return types