<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_map_location(self):
 """Get the location of the player, converted to world coordinates. :return: a tuple (x, y, z). """

        map_data = self.get_map()
        (bounds_e, bounds_n), (bounds_w, bounds_s) = map_data["continent_rect"]
        (map_e, map_n), (map_w, map_s) = map_data["map_rect"]

        assert bounds_w < bounds_e
        assert bounds_n < bounds_s
        assert map_w < map_e
        assert map_n < map_s

        meters_to_inches = 39.3701
        x, y, z = self.fAvatarPosition

        map_x = bounds_w + ((x * meters_to_inches - map_w) /
                            (map_e - map_w) * (bounds_e - bounds_w))
        map_y = bounds_n + ((-z * meters_to_inches - map_n) /
                            (map_s - map_n) * (bounds_s - bounds_n))
        map_z = y * meters_to_inches

        return map_x, map_y, map_z