parameters: (self, i)
return_statement: return
docstring: Check index i for sanity, otherwise raise Exception.
  
          Parameters
          ----------
              i: int
                  Index.
docstring_summary: Check index i for sanity, otherwise raise Exception.
docstring_tokens: Check index i for sanity otherwise raise Exception .
function: def _checkIndex(self, i):
          """ Check index i for sanity, otherwise raise Exception.
  
          Parameters
          ----------
              i: int
                  Index.
  
          """
  
          # check type
          if not isinstance(i, int):
              raise TypeError('index supposed to be integer')
  
          # check whether in range
          if i < 0 or i >= self.head['ValidNumberElements']:
              raise IndexError('Index out of range accessing element \
                                {} of {} valid elements'.format(i + 1, self.head[
                  'ValidNumberElements']))
  
          return
function_tokens: def _checkIndex ( self , i ) : # check type if not isinstance ( i , int ) : raise TypeError ( 'index supposed to be integer' ) # check whether in range if i < 0 or i >= self . head [ 'ValidNumberElements' ] : raise IndexError ( 'Index out of range accessing element \
                                {} of {} valid elements' . format ( i + 1 , self . head [ 'ValidNumberElements' ] ) ) return