<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def configure_upload(graph, ns, mappings, exclude_func=None):
 """ Register Upload endpoints for a resource object. """

    convention = UploadConvention(graph, exclude_func)
    convention.configure(ns, mappings)