code: def _astype_nansafe(
      arr: np.ndarray,
      dtype: ExtensionDtype,
      copy: bool = ...,
      skipna: bool = ...,
  ) -> ExtensionArray:
      ...
  
file_path: catboost/contrib/python/pandas/py3/pandas/core/dtypes/astype.py
imports: from __future__ import annotations
  import inspect
  from typing import TYPE_CHECKING, overload
  import warnings
  import numpy
  from pandas._libs import lib
  from pandas._libs.tslibs.timedeltas import array_to_timedelta64
  from pandas._typing import ArrayLike, DtypeObj, IgnoreRaise
  from pandas.errors import IntCastingNaNError
  from pandas.core.dtypes.common import is_datetime64_dtype, is_dtype_equal, is_integer_dtype, is_object_dtype, is_string_dtype, is_timedelta64_dtype, pandas_dtype
  from pandas.core.dtypes.dtypes import ExtensionDtype, PandasDtype
label_desc: Use image node_id 2 for calling a global function with example usage: _astype_nansafe(arr, dtype, copy, skipna) without return types