def METHOD_NAME(funcName, arguments, handlerClassPath, doc):
    """Create a function with *funcName* taking *arguments*."""
    doc = "" if doc is None else doc
    funcDocString = f"{funcName}({', '.join(arguments)}, **kwargs)\n"
    # do not describe self or cls in the parameter description
    if arguments and arguments[0] in ("self", "cls"):
        arguments = arguments[1:]
    # Create the actual functions, with or without arguments, **kwargs can be: rpc, timeout, url
    func = partialmethodWithDoc(Client.executeRPC, call=funcName)
    func.__doc__ = funcDocString + doc
    func.__doc__ += "\n\nAutomatically created for the service function "
    func.__doc__ += f":func:`~{handlerClassPath}.export_{funcName}`"
    # add description for parameters, if that is not already done for the docstring of function in the service
    if arguments and ":param " not in doc:
        func.__doc__ += "\n\n"
        func.__doc__ += "\n".join(f":param {par}: {par}" for par in arguments)
    return func