def METHOD_NAME(body_element, trans_units, units_to_add):
    to_add = [tr_unit for tr_unit in trans_units if tr_unit.attrib['id'] in units_to_add]
    for item in to_add:
        item.set('{http://www.w3.org/XML/1998/namespace}space', "preserve")
        target_element = ET.Element('target', {'state': 'new'})
        target_element.tail = "\n  "
        item.append(target_element)
        body_element.append(item)