docstr: Return element of buffer at specific index
  
  # Argument
      idx (int): Index wanted
  
  # Returns
      The element of buffer at given index
docstr_tok: ["Return","element","of","buffer","at","specific","index","#","Argument","idx","(","int",")",":","Index","wanted","#","Returns","The","element","of","buffer","at","given","index"]
code: def __getitem__(self, idx):
      """Return element of buffer at specific index
  
      # Argument
          idx (int): Index wanted
  
      # Returns
          The element of buffer at given index
      """
      if idx < 0 or idx >= self.length():
          raise KeyError()
      return self.data[idx]
  
imports: from __future__ import absolute_import
  from collections import deque, namedtuple
  import warnings
  import random
  import numpy
label_desc: Use image node_id 3 for calling the RingBuffer obj's underlying member method code with example usage: obj.__getitem__(idx) and returns: self