code: def tolocal(self):
          
          from thunder.images.readers import fromarray
  
          if self.mode == 'local':
              logging.getLogger('thunder').warn('images already in local mode')
              pass
  
          return fromarray(self.toarray())
docs: Convert to local mode.