<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _remove_from_index(index, obj):
 """Removes object ``obj`` from the ``index``."""

    try:
        index.value_map[indexed_value(index, obj)].remove(obj.id)
    except KeyError:
        pass