code: def _is_boolean_like(input):
      """
      Check if scalar constant input provided to arithmetic operator is a boolean constant.
  
      Parameters
      ----------
      input :
          Input representing scalar constant (not a DataNode or a tensor constant like np.array)
      """
      if type(input) is bool:
          return True
      if isinstance(input, _ScalarConstant):
          if input.dtype in _bool_types:
              return True
      return False
  
file_path: DALI/dali/python/nvidia/dali/ops/_operators/math.py
imports: from nvidia.dali import _conditionals
  from nvidia.dali.data_node import DataNode
  from nvidia.dali.types import DALIDataType, Constant, ScalarConstant, _bool_types, _int_like_types, _float_types
label_desc: Use image node_id 1 for calling a global function with example usage: _is_boolean_like(input) and returns: False, True, True