code: def get(self, index: Union[int, str]) -> HistoryItem:
          
          index = int(index)
          if index == 0:
              raise IndexError('The first command in history is command 1.')
          elif index < 0:
              return self[index]
          else:
              return self[index - 1]
docs: Get item from the History list using 1-based indexing.
  
          :param index: optional item to get (index as either integer or string)
          :return: a single HistoryItem