Scala NDArrayIter example help

Hi, I cannot find a single example of how to use NDArrayIter to load data using Scala API, can someone please help me with that?

You can follow the arguments in the documentation and then you get something you can iterate over to get some DataBatch similarly to how the MNISTIter is used here: