def METHOD_NAME(scaf, structures):
    scaffold = indigo.loadQueryMolecule(scaf)
    deco = indigo.createDecomposer(scaffold)
    for smiles in structures:
        str = indigo.loadMolecule(smiles)
        item = deco.decomposeMolecule(str)
        print(
            "highlighted structure: "
            + item.decomposedMoleculeHighlighted().smiles()
        )
        print(
            "molecule scaffold: " + item.decomposedMoleculeScaffold().smiles()
        )
        print("molecule with rgroups: ")
        mol = item.decomposedMoleculeWithRGroups()
        prepareStructure(mol)
        printMolfile(mol)
        printRGroups(mol)
    full_scaf = deco.decomposedMoleculeScaffold()
    prepareStructure(full_scaf)
    print("full scaffold: ")
    printQMolfile(full_scaf)