class_docstr: ExtensionArray that is backed by a single NumPy ndarray.
class_docstr_tok: ["ExtensionArray","that","is","backed","by","a","single","NumPy","ndarray","."]
code: def __getitem__(
      self: NDArrayBackedExtensionArrayT,
      key: PositionalIndexer2D,
  ) -> NDArrayBackedExtensionArrayT | Any:
      if lib.is_integer(key):
          # fast-path
          result = self._ndarray[key]
          if self.ndim == 1:
              return self._box_func(result)
          return self._from_backing_data(result)
  
      # error: Incompatible types in assignment (expression has type "ExtensionArray",
      # variable has type "Union[int, slice, ndarray]")
      key = extract_array(key, extract_numpy=True)  # type: ignore[assignment]
      key = check_array_indexer(self, key)
      result = self._ndarray[key]
      if lib.is_scalar(result):
          return self._box_func(result)
  
      result = self._from_backing_data(result)
      return result
  
imports: from __future__ import annotations
  from functools import wraps
  from typing import TYPE_CHECKING, Any, Literal, Sequence, TypeVar, cast, overload
  import numpy
  from pandas._libs import lib
  from pandas._libs.arrays import NDArrayBacked
  from pandas._typing import ArrayLike, AxisInt, Dtype, F, PositionalIndexer2D, PositionalIndexerTuple, ScalarIndexer, SequenceIndexer, Shape, TakeIndexer, npt, type_t
  from pandas.errors import AbstractMethodError
  from pandas.util._decorators import doc
  from pandas.util._validators import validate_bool_kwarg, validate_fillna_kwargs, validate_insert_loc
  from pandas.core.dtypes.common import is_dtype_equal, pandas_dtype
  from pandas.core.dtypes.dtypes import DatetimeTZDtype, ExtensionDtype, PeriodDtype
  from pandas.core.dtypes.missing import array_equivalent
  from pandas.core import missing
  from pandas.core.algorithms import take, unique, value_counts
  from pandas.core.array_algos.quantile import quantile_with_mask
  from pandas.core.array_algos.transforms import shift
  from pandas.core.arrays.base import ExtensionArray
  from pandas.core.construction import extract_array
  from pandas.core.indexers import check_array_indexer
  from pandas.core.sorting import nargminmax
label_desc: Use image node_id 19 for calling the NDArrayBackedExtensionArray obj's underlying member method code with example usage: obj.__getitem__(key) and returns: result, self, self, self