class_docstr: Fixed-size priority queue keeping the max_size largest items.
docstr: Get item at specified index.
  
  :param key: integer index into priority queue, 0 <= index < max_size.
  
  :returns: item stored at the specified index.
docstr_tok: ["Get","item","at","specified","index",".",":","param","key",":","integer","index","into","priority","queue",",","0","<","=","index","<","max_size",".",":","returns",":","item","stored","at","the","specified","index","."]
code: def __getitem__(self, key):
      """
      Get item at specified index.
  
      :param key: integer index into priority queue, 0 <= index < max_size.
  
      :returns: item stored at the specified index.
      """
      return sorted(self.lst)[key][1]
  
imports: from typing import Optional
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  import math
  from collections.abc import Sequence
  import heapq
  import json
  import parlai.utils.torch
  from parlai.core.agents import Agent
  from parlai.core.dict import DictionaryAgent
  from parlai.utils.io import PathManager
label_desc: Use image node_id 3 for calling the MaxPriorityQueue obj's underlying member method code with example usage: obj.__getitem__(key) and returns: sorted