PhotogrammetrySession and PhotogrammetrySample

In WWDC 2021, It saids 'we also offer an interface for advanced workflows to provide a sequence of custom samples.

A PhotogrammetrySample includes the image plus other optional data such as a depth map, gravity vector, or custom segmentation mask.'

But in code, PhotogrammetrySession initialize with data saved directory.

How can I give input of PhotogrammetrySamples to PhotogrammetrySession?