code: def create_from_roi_data(cls, datafile):
          
          data = np.load(datafile).flat[0]
  
          roi = cls()
          roi.load_sources(data['sources'].values())
  
          return roi
docs: Create an ROI model.