def find_image(conn, name):
for item in conn.list_images()['<STR_LIT>']:<EOL><INDENT>if (item['<STR_LIT>']['<STR_LIT:location>'] == configuration.LOCATION and<EOL>item['<STR_LIT>']['<STR_LIT>'] == '<STR_LIT>' and<EOL>name in item['<STR_LIT>']['<STR_LIT:name>']):<EOL><INDENT>return item<EOL><DEDENT><DEDENT>return None<EOL>
Find image by partial name and location.