code: def isna_all(arr: ArrayLike) -> bool:
      """
      Optimized equivalent to isna(arr).all()
      """
      total_len = len(arr)
  
      # Usually it's enough to check but a small fraction of values to see if
      #  a block is NOT null, chunks should help in such cases.
      #  parameters 1000 and 40 were chosen arbitrarily
      chunk_len = max(total_len // 40, 1000)
  
      dtype = arr.dtype
      if dtype.kind == "f" and isinstance(dtype, np.dtype):
          checker = nan_checker
  
      elif (
          isinstance(dtype, np.dtype) and dtype.kind in ["m", "M"]
      ) or isinstance(dtype, (DatetimeTZDtype, PeriodDtype)):
          # error: Incompatible types in assignment (expression has type
          # "Callable[[Any], Any]", variable has type "ufunc")
          checker = lambda x: np.asarray(x.view("i8")) == iNaT  # type: ignore[assignment]
  
      else:
          # error: Incompatible types in assignment (expression has type "Callable[[Any],
          # Any]", variable has type "ufunc")
          checker = lambda x: _isna_array(  # type: ignore[assignment]
              x, inf_as_na=INF_AS_NA
          )
  
      return all(
          checker(arr[i : i + chunk_len]).all()
          for i in range(0, total_len, chunk_len)
      )
  
imports: from __future__ import annotations
  from decimal import Decimal
  from functools import partial
  from typing import TYPE_CHECKING, overload
  import numpy
  from pandas._config import get_option
  from pandas._libs import lib
  import pandas._libs.missing
  from pandas._libs.tslibs import NaT, iNaT
  from pandas.core.dtypes.common import DT64NS_DTYPE, TD64NS_DTYPE, ensure_object, is_bool_dtype, is_categorical_dtype, is_complex_dtype, is_dtype_equal, is_extension_array_dtype, is_float_dtype, is_integer_dtype, is_object_dtype, is_scalar, is_string_or_object_np_dtype, needs_i8_conversion
  from pandas.core.dtypes.dtypes import CategoricalDtype, DatetimeTZDtype, ExtensionDtype, IntervalDtype, PeriodDtype
  from pandas.core.dtypes.generic import ABCDataFrame, ABCExtensionArray, ABCIndex, ABCMultiIndex, ABCSeries
  from pandas.core.dtypes.inference import is_list_like
label_desc: Use image node_id 28 for calling a global function with example usage: isna_all(arr) and returns: all