code: def visualize_learning_result(self, state_key):
          '''
          Visualize learning result.
          '''
          x, y = state_key
          map_arr = copy.deepcopy(self.__map_arr)
          goal_point_tuple = np.where(map_arr == self.__end_point_label)
          goal_x, goal_y = goal_point_tuple
          map_arr[y][x] = "@"
          self.__map_arr_list.append(map_arr)
          if goal_x == x and goal_y == y:
              for i in range(10):
                  key = len(self.__map_arr_list) - (10 - i)
                  print("Number of searches: " + str(key))
                  print(self.__map_arr_list[key])
              print("Total number of searches: " + str(self.t))
              print(self.__map_arr_list[-1])
              print("Goal !!"f visualize_learning_result(self, state_key):
          '''
          Visualize learning result.
          '''
          x, y = state_key
          map_arr = copy.deepcopy(self.__map_arr)
          goal_point_tuple = np.where(map_arr == self.__end_point_label)
          goal_x, goal_y = goal_point_tuple
          map_arr[y][x] = "@"
          self.__map_arr_list.append(map_arr)
          if goal_x == x and goal_y == y:
              for i in range(10):
                  key = len(self.__map_arr_list) - (10 - i)
                  print("Number of searches: " + str(key))
                  print(self.__map_arr_list[key])
              print("Total number of searches: " + str(self.t))
              print(self.__map_arr_list[-1])
              print("Goal !!")
docs: Visualize learning result.