

def build_image(el, meta_data):
    image_id = get_image_id(el)
    if (image_id not in meta_data.relationship_dict):
        return ''
    src = meta_data.image_handler(el, meta_data.relationship_dict)
    if (image_id in meta_data.image_sizes):
        (width, height) = meta_data.image_sizes[image_id]
    else:
        target = meta_data.relationship_dict[image_id]
        (width, height) = _get_image_size_from_image(target)
    if all((width, height)):
        return ('<img src="%s" height="%d" width="%d" />' % (src, height, width))
    else:
        return ('<img src="%s" />' % src)
    return ''

dataset/ETHPy150Open PolicyStat/docx2html/docx2html/core.py build_image/VarMisuse@41/59 `image_id`->`el`