code: def lindex(self, key, index, *, encoding=_NOTSET):
          
          if not isinstance(index, int):
              raise TypeError("index argument must be int")
          return self.execute(b'LINDEX', key, index, encoding=encoding)
docs: Get an element from a list by its index.
  
          :raises TypeError: if index is not int