def _plugin_endpoint_rename(fn_name, instance):
if instance and instance.namespaced:<EOL><INDENT>fn_name = "<STR_LIT>".format(instance.name, fn_name[<NUM_LIT:2>:])<EOL><DEDENT>return fn_name<EOL>
Rename endpoint function name to avoid conflict when namespacing is set to true

    :param fn_name: Name of the route function
    :param instance: Instance bound to the function
    :return: Name of the new namespaced function name