class_docstr: Base class for nested array objects.
class_docstr_tok: ["Base","class","for","nested","array","objects","."]
code: def __init__(
      self,
      data,
      nested_rank,
      inner_shape,
      dtype,
      device,
      internal=False,
  ):
      if not internal:
          raise RuntimeError(
              "NestedArray is an abstract class "
              "and should not be instantiated directly."
              "Please use one of the factory methods instead"
          )
      self._data = data
      self._nested_rank = nested_rank
      self._inner_shape = inner_shape
      self._shape = (
          [len(self._data)]
          + [None] * self._nested_rank
          + self._inner_shape
      )
      self._dtype = dtype
      self._device = device
      self._pre_repr = "ivy.NestedArray"
  
imports: import abc
  from typing import List, Tuple
  import ivy
label_desc: Use image node_id 1 to create a new NestedArrayBase object from inherited base classes: abc with example: obj = NestedArrayBase(data, nested_rank, inner_shape, dtype, device, internal)