docs: def toimages(self):
          """
          Convert blocks to images.
          """
          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)