(Shortest import: from brian2.units.unitsafefunctions import wrap_function_to_method)
from brian2.units.unitsafefunctions import wrap_function_to_method)
Wraps a function so that it calls the corresponding method on the Quantities object (if called with a Quantities object as the first argument). All other arguments are left untouched.