Error trying to run Lesson 7 code

Hello,

I am trying to run SuperResolution GAN from Lesson 7 notebook. But when I run the line:

src = ImageImageList.from_folder(path_lr).split_by_rand_pct(0.1, seed=42)

I get the following error:

   ---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-26-b72ec5526f3e> in <module>()
----> 1 src = ImageImageList.from_folder(path_wm_train).split_by_rand_pct(0.1, seed=42)

AttributeError: 'ImageImageList' object has no attribute 'split_by_rand_pct'

Please let me know the best way to load Image with labels and split by Training and Validation set.

Any help would be appreciated.
Thanks

Okay figured it out.
The function has changed. It should be:

So the code should be:

src = ImageImageList.from_folder(path_lr).random_split_by_pct(0.1, seed=42)