code: def is_floating(self):
          
          return (
              self.is_numpy_compatible and np.issubdtype(self.as_numpy_dtype, np.floating)
          ) or self.base_dtype == bfloat16
docs: Returns whether this is a (non-quantized, real) floating point type.