private void addTagToFunction(String name, Program program, String address) {

		Address entryPoint = addr(address, program);

		int transactionID = program.startTransaction("add");
		try {
			FunctionManagerDB functionManagerDB = (FunctionManagerDB) program.getFunctionManager();
			Function function = functionManagerDB.getFunctionAt(entryPoint);
			function.addTag(name);
		}
		finally {
			program.endTransaction(transactionID, true);
		}
	}
Adds a tag to a function.

@param name the name of the tag to add
@param program the program where the function resides
@param address the entry point of the function, as a string
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/function/tags/FunctionTagMergeTest.java