How to select particular Image from Gallery

Hello,

I have an application which invokes the gallery application. I want to select a particular image from gallery.
Is there a way to achieve this.

For example

My gallery contains a folder called checks. Can i select checks folder and select a particular image from the checks folder .

What appium client are you using? if wd use:

wd.elementByName("checks").click()

then when image appear use:

wd.elementByName('imageName').click()