code: def __init__(self, values, dtype=None, copy=False) -> None:
      if not isinstance(values, np.ndarray):
          raise TypeError("Need to pass a numpy array as values")
      for val in values:
          if not isinstance(val, self.dtype.type) and not pd.isna(val):
              raise TypeError(
                  "All values must be of type " + str(self.dtype.type)
              )
      self.data = values
  
imports: from __future__ import annotations
  import numbers
  import string
  from typing import TYPE_CHECKING
  import numpy
  from pandas.core.dtypes.base import ExtensionDtype
  import pandas
  from pandas.api.types import is_object_dtype, is_string_dtype
  from pandas.core.arrays import ExtensionArray
label_desc: Use image node_id 1 to create a new ListArray object from inherited base classes: ExtensionArray with example: obj = ListArray(values, dtype, copy)