class_docstr: Basic implementation of a synchronous client.
class_docstr_tok: ["Basic","implementation","of","a","synchronous","client","."]
docstr: Sets image coming from camera sensor.
  The self.capture flag is a mean of synchronization - once the flag is
  set, next coming image will be stored.
docstr_tok: ["Sets","image","coming","from","camera","sensor",".","The","self.capture","flag","is","a","mean","of","synchronization","-","once","the","flag","is","set",",","next","coming","image","will","be","stored","."]
code: def set_image(weak_self, img):
      """
      Sets image coming from camera sensor.
      The self.capture flag is a mean of synchronization - once the flag is
      set, next coming image will be stored.
      """
  
      self = weak_self()
      if self.capture:
          self.image = img
          self.capture = False
  
imports: import glob
  import os
  import sys
  import carla
  import weakref
  import random
label_desc: Use image node_id 7 for calling the BasicSynchronousClient obj's underlying member method code with example usage: obj.set_image(weak_img) without return types