class_docstr: A simplified linked list with limited supported operations.
  
  It doesn't copy any data pass to it but directly refer to it.
class_docstr_tok: ["A","simplified","linked","list","with","limited","supported","operations",".","It","does","n't","copy","any","data","pass","to","it","but","directly","refer","to","it","."]
docstr: Insert data after another data.
  
  `data` is inserted after `data_pre` in the linked list.
  
  Args:
      data: The data to insert.
      data_pre: Optional. The data marking the insertion location. If left
          unspecified, the data will be appended to the rear of the linked
          list.
docstr_tok: ["Insert","data","after","another","data",".","`","data","`","is","inserted","after","`","data_pre","`","in","the","linked","list",".","Args",":","data",":","The","data","to","insert",".","data_pre",":","Optional",".","The","data","marking","the","insertion","location",".","If","left","unspecified",",","the","data","will","be","appended","to","the","rear","of","the","linked","list","."]
code: def insert(self, data, data_pre=None):
      """Insert data after another data.
  
      `data` is inserted after `data_pre` in the linked list.
  
      Args:
          data: The data to insert.
          data_pre: Optional. The data marking the insertion location. If left
              unspecified, the data will be appended to the rear of the linked
              list.
      """
      self._memory.append(data)
      new_index = len(self._memory) - 1
      self._data_to_index[data] = new_index
  
      index = (
          self._last_index
          if data_pre is None
          else self._data_to_index[data_pre]
      )
  
      self._next_index[new_index] = self._next_index[index]
      self._next_index[index] = new_index
  
      # Update self._last_index.
      while self._next_index[self._last_index] is not None:
          self._last_index = self._next_index[self._last_index]
  
file_path: keras-tuner/keras_tuner/tuners/gridsearch.py
imports: import collections
  import copy
  from keras_tuner.api_export import keras_tuner_export
  from keras_tuner.engine import oracle
  from keras_tuner.engine import trial
  from keras_tuner.engine import tuner
label_desc: Use image node_id 2 for calling the LinkedList obj's underlying member method code with example usage: obj.insert(data, data_pre) without return types