<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_from_roi_data(cls, datafile):
 """Create an ROI model."""

        data = np.load(datafile).flat[0]

        roi = cls()
        roi.load_sources(data['sources'].values())

        return roi