def METHOD_NAME(testname, reactants, products, mode="discard"):
    print("*** %s ***" % testname)
    rxn = indigo.createReaction()
    for r in reactants:
        rxn.addReactant(indigo.loadMolecule(r))
    for p in products:
        rxn.addProduct(indigo.loadMolecule(p))
    print("Before:")
    print(rxn.smiles())
    rxn.automap(mode)
    print("After:")
    print(rxn.smiles())