def METHOD_NAME(self, agent, position=None):
    """
    Set agent to a new position
    @param agent to be moved
    @param list coordinates of the new position or none for a random one
    """
    position = self.findposition(position)
    if not position:
        raise error.DataError(
            "r.agent::libagent.world.World.move()", "invalid position"
        )
    agent.setposition(position)