<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_obj(ref):
 """Get object from string reference."""

    oid = int(ref)
    return server.id2ref.get(oid) or server.id2obj[oid]