code: def _is_scalar_value(value):
      if value is None:
          return True
      if isinstance(value, (bool, int, float)):
          return True
      return not _is_compatible_array_type(value) or _is_scalar_shape(
          value.shape
      )
  
imports: from enum import Enum, unique
  import re
  from nvidia.dali._backend_enums import DALIDataType, DALIImageType, DALIInterpType
  from nvidia.dali.backend_impl.types import *
label_desc: Use image node_id 21 for calling a global function with example usage: _is_scalar_value(value) and returns: unknown, True, True