code: def screenshot(self, filename=None):
          
          # screen size: 1280x720
          screen = self._ymc.screenshot()
          if filename:
              screen.save(filename)
          return screen
docs: Take a screenshot