code: def toimages(self):
          
          from thunder.images.images import Images
  
          if self.mode == 'spark':
              values = self.values.values_to_keys((0,)).unchunk()
  
          if self.mode == 'local':
              values = self.values.unchunk()
  
          return Images(values)
docs: Convert blocks to images.