code: def add_index_operation(self, name, operations):
          
          if name not in self._index_operations:
              self._add_io(name, operations)
          else:
              raise AttributeError("An index operation with the name {} was already taken".format(name))
docs: Add index operation with name to the operations given.
  
          raises: attribute error if operations exist.