<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def teleport(self, agent_name, location=None, rotation=None):
 """Teleports the target agent to any given location, and applies a specific rotation. Args: agent_name (str):
 The name of the agent to teleport. location (np.ndarray or list):
 XYZ coordinates (in meters) for the agent to be teleported to. If no location is given, it isn't teleported, but may still be rotated. Defaults to None. rotation (np.ndarray or list):
 A new rotation target for the agent. If no rotation is given, it isn't rotated, but may still be teleported. Defaults to None. """

        self.agents[agent_name].teleport(location * 100, rotation)  # * 100 to convert m to cm
        self.tick()