code: def squared_hinge(y_true, y_pred):
      y_true = ivy.astype(ivy.array(y_true), y_pred.dtype)
      y_true = _cond_convert_labels(y_true)
      return ivy.mean(
          ivy.square(ivy.maximum(1.0 - y_true * y_pred, 0.0)), axis=-1
      )
  
imports: import ivy
  from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 21 for calling a global function with example usage: squared_hinge(y_true, y_pred) and returns: ivy