code: def sparse_categorical_crossentropy(
      y_true, y_pred, from_logits=False, axis=-1
  ):
      if from_logits:
          y_pred = ivy.softmax(y_pred)
      return ivy.sparse_cross_entropy(y_true, y_pred, axis=axis)
  
imports: import ivy
  from ivy.functional.frontends.tensorflow.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 19 for calling a global function with example usage: sparse_categorical_crossentropy(y_true, y_pred, from_logits, axis) and returns: ivy