class_docstr: An ArrayList is a strongly typed list whose type can be anything that can
  be interpreted as a numpy data type.
docstr: Set current capacity of the underlying array
docstr_tok: ["Set","current","capacity","of","the","underlying","array"]
code: def reserve(self, capacity):
      """Set current capacity of the underlying array"""
      if capacity >= self._data.size:
          capacity = int(2 ** np.ceil(np.log2(capacity)))
          self._data = np.resize(self._data, capacity)
  
file_path: vispy/vispy/visuals/collections/array_list.py
imports: import numpy
label_desc: Use image node_id 6 for calling the ArrayList obj's underlying member method code with example usage: obj.reserve(capacity) without return types