The dataset, when you load it, will be automatically segmented by bounds. Therefore, if you want to simply loop through the segments and labels, you can treat the dataset as an iterable.
from frdc.load.preset import FRDCDatasetPreset
ds = FRDCDatasetPreset.chestnut_20201218()
for x, y in ds:
print(x.shape, y)
If you just want the segments or targets separately, use .ar_segments and .targets respectively.
from frdc.load.preset import FRDCDatasetPreset
ds = FRDCDatasetPreset.chestnut_20201218()
for x in ds.ar_segments:
print(x.shape)
for y in ds.targets:
print(y)
If you want the entire image, use .ar.
from frdc.load.preset import FRDCDatasetPreset
ds = FRDCDatasetPreset.chestnut_20201218()
ar = ds.ar
Finally, inspect the order of the bands through the band_order attribute.
from frdc.load.preset import FRDCDatasetPreset
ds = FRDCDatasetPreset.chestnut_20201218()
ds.band_order