<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_network_to_dhcp_agent(self, dhcp_agent, body=None):
 """Adds a network to dhcp agent."""

        return self.post((self.agent_path + self.DHCP_NETS) % dhcp_agent,
                         body=body)