def METHOD_NAME(image_obj):
    '''Given the image object, return the relationships to the layers'''
    block = ''
    image_reference = spdx_common.get_image_spdxref(image_obj)
    for layer in image_obj.layers:
        block = block + spdx_formats.contains.format(
            outer=image_reference,
            inner=lhelpers.spdx_common.get_layer_spdxref(layer)) + '\n'
    return block