<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_entity(namespace, workspace, etype, ename, updates):
 """ Update entity attributes in a workspace. Args: namespace (str):
 project to which workspace belongs workspace (str):
 Workspace name etype (str):
 Entity type ename (str):
 Entity name updates (list(dict)):
 List of updates to entity from _attr_set, e.g. Swagger: https://api.firecloud.org/#!/Entities/update_entity """

    headers = _fiss_agent_header({"Content-type":  "application/json"})
    uri = "{0}workspaces/{1}/{2}/entities/{3}/{4}".format(fcconfig.root_url,
                                            namespace, workspace, etype, ename)

    # FIXME: create __patch method, akin to __get, __delete etc
    return __SESSION.patch(uri, headers=headers, json=updates)