<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pyuri_formatter(namespace, value):
 """ Formats a namespace and ending value into a python friendly format args: namespace: RdfNamespace or tuple in the format of (prefix, uri,) value: end value to attach to the namespace """

    if namespace[0]:
        return "%s_%s" %(namespace[0], value)
    else:
        return "pyuri_%s_%s" % (base64.b64encode(bytes(namespace[1],
                                                       "utf-8")).decode(),
                                value)