code: def snapshot(self, filename="tmp.png"):
          
          if not filename:
              filename = "tmp.png"
          if self.handle:
              try:
                  screenshot(filename, self.handle)
              except win32gui.error:
                  self.handle = None
                  screenshot(filename)
          else:
              screenshot(filename)
  
          img = aircv.imread(filename)
          os.remove(filename)
  
          return img
docs: Take a screenshot and save it to `tmp.png` filename by default
  
          Args:
              filename: name of file where to store the screenshot
  
          Returns:
              display the screenshot