def labeledFcn(fcn, paramNames):
    """Wraps a function with its parameter names (in-place).

    :type fcn: callable Python object
    :param fcn: function to wrap
    :type paramNames: list of strings
    :param paramNames: parameters to attach to the function
    :rtype: callable Python object
    :return: the original function, modified in-place by adding ``paramNames`` as an attribute
    """

    fcn.paramNames = paramNames
    return fcn