def METHOD_NAME(mol, offset):
    printAttachmentPoints(mol, offset)
    mol2 = indigo.loadMolecule(mol.molfile())
    printAttachmentPoints(mol2, offset)
    mol2.clearAttachmentPoints()
    printAttachmentPoints(mol2, offset)
    mol3 = indigo.loadMolecule(mol.molfile())
    replaceAttachmentPointsWithLayout(mol3, offset)