---
title: labeledImages()
framework: createml
role: symbol
role_heading: Instance Method
path: createml/mlimageclassifier/datasource/labeledimages()
---

# labeledImages()

Returns the labeled images represented by the data source.

## Declaration

```swift
func labeledImages() throws -> [String : [URL]]
```

## Return Value

Return Value The labeled images that the data source represents, as a dictionary. The dictionary keys are the labels, while the dictionary values are arrays of images, represented as URLs, that correspond to the label.

## See Also

### Retrieving the data

- [MLImageClassifier.DataSource.filesByLabel(_:)](createml/mlimageclassifier/datasource/filesbylabel(_:).md)
