Approach #1: code in the PSO section, but make no calls to it at all.
Approach #2: code in the PSO section, make a call to it, and when it returns, ignore the result.
If you find these approaches to be unsatisfactory, then it could be that you have in mind a specific definition of "noise" that you have not shared with us.