def get_keras_loss(loss_name):
    """
    Fetches built in tensorflow losses

    :param loss_name: The name of the loss to fetch
    :return: A vanilla Keras loss function
    """
    from tensorflow.keras import losses
    return getattr(losses, loss_name)
