<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_agent(self, agent_id):
 """Fetches the agent for the given agent ID"""

        url = 'agents/%s' % agent_id
        return Agent(**self._api._get(url))