code: def hard_sigmoid(x):
      dtype = _batch_promotion(x, default_dtype="float64")
      return ivy.divide(
          ivy.minimum(ivy.maximum(ivy.add(x, 3), 0), 6), 6
      ).astype(dtype)
  
imports: import ivy
  from ivy.functional.frontends.jax.func_wrapper import to_ivy_arrays_and_back
  from ivy.func_wrapper import with_supported_dtypes
label_desc: Use image node_id 12 for calling a global function with example usage: hard_sigmoid(x) and returns: ivy