class_docstr: A pandas ExtensionArray for NumPy data.
  
  This is mostly for internal compatibility, and is not especially
  useful on its own.
  
  Parameters
  ----------
  values : ndarray
      The NumPy ndarray to wrap. Must be 1-dimensional.
  copy : bool, default False
      Whether to copy `values`.
  
  Attributes
  ----------
  None
  
  Methods
  -------
  None
  
  Examples
  --------
  >>> pd.arrays.NumpyExtensionArray(np.array([0, 1, 2, 3]))
  <NumpyExtensionArray>
  [0, 1, 2, 3]
  Length: 4, dtype: int64
code: def __init__(
      self, values: np.ndarray | NumpyExtensionArray, copy: bool = False
  ) -> None:
      if isinstance(values, type(self)):
          values = values._ndarray
      if not isinstance(values, np.ndarray):
          raise ValueError(
              f"'values' must be a NumPy array, not {type(values).__name__}"
          )
  
      if values.ndim == 0:
          # Technically we support 2, but do not advertise that fact.
          raise ValueError("NumpyExtensionArray must be 1-dimensional.")
  
      if copy:
          values = values.copy()
  
      dtype = NumpyEADtype(values.dtype)
      super().__init__(values, dtype)
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Literal
  import numpy
  from pandas._libs import lib
  from pandas._libs.tslibs import is_supported_dtype
  from pandas.compat.numpy import function
  from pandas.core.dtypes.astype import astype_array
  from pandas.core.dtypes.cast import construct_1d_object_array_from_listlike
  from pandas.core.dtypes.common import pandas_dtype
  from pandas.core.dtypes.dtypes import NumpyEADtype
  from pandas.core.dtypes.missing import isna
  from pandas.core import arraylike, missing, nanops, ops
  from pandas.core.arraylike import OpsMixin
  from pandas.core.arrays._mixins import NDArrayBackedExtensionArray
  from pandas.core.construction import ensure_wrapped_if_datetimelike
  from pandas.core.strings.object_array import ObjectStringArrayMixin
label_desc: Use image node_id 1 to create a new NumpyExtensionArray object from inherited base classes: OpsMixin, NDArrayBackedExtensionArray, ObjectStringArrayMixin with example: obj = NumpyExtensionArray(values, copy)