code: def _has_bool_dtype(x):
      try:
          if isinstance(x, ABCDataFrame):
              return "bool" in x.dtypes
          else:
              return x.dtype == bool
      except AttributeError:
          return isinstance(x, (bool, np.bool_))
  
file_path: catboost/contrib/python/pandas/py2/pandas/core/computation/expressions.py
imports: import warnings
  import numpy
  from pandas.core.dtypes.generic import ABCDataFrame
  import pandas.core.common
  from pandas.core.computation.check import _NUMEXPR_INSTALLED
  from pandas.core.config import get_option
label_desc: Use image node_id 8 for calling a global function with example usage: _has_bool_dtype(x) and returns: unknown, unknown, isinstance