class_docstr: Base class for nested array objects.
class_docstr_tok: ["Base","class","for","nested","array","objects","."]
code: def __getitem__(self, query):
      ret = self._data[query]
      if isinstance(ret, list):
          return self.__class__.nested_array(
              ret,
              self._nested_rank - 1,
              dtype=self._dtype,
              device=self._device,
          )
      return ret
  
imports: import abc
  from typing import List, Tuple
  import ivy
label_desc: Use image node_id 17 for calling the NestedArrayBase obj's underlying member method code with example usage: obj.__getitem__(query) and returns: ret, self