code: def is_any_real_numeric_dtype(arr_or_dtype) -> bool:
      try:
          # `is_any_real_numeric_dtype` was added in PANDAS_GE_200.
          # We can remove this compatibility utility once we only support `pandas>=2.0`
          return pd.api.types.is_any_real_numeric_dtype(arr_or_dtype)
      except AttributeError:
          from pandas.api.types import (
              is_bool_dtype,
              is_complex_dtype,
              is_numeric_dtype,
          )
  
          return (
              is_numeric_dtype(arr_or_dtype)
              and not is_complex_dtype(arr_or_dtype)
              and not is_bool_dtype(arr_or_dtype)
          )
  
imports: from __future__ import annotations
  import contextlib
  import string
  import warnings
  import numpy
  import pandas
  from packaging.version import Version
  import pandas.testing
label_desc: Use image node_id 20 for calling a global function with example usage: is_any_real_numeric_dtype(arr_or_dtype) and returns: pd, unknown