code: def make_regression_logarithmic_loss_fn():
      """Returns Mean Squared Logarithmic Error loss_fn for regression."""
  
      def _loss_fn(labels, logits, weights=1.0):
          return tf.compat.v1.losses.mean_squared_error(
              labels=tf.math.log1p(tf.nn.relu(labels)),
              predictions=logits,
              weights=weights,
              reduction=tf.compat.v1.losses.Reduction.SUM_OVER_BATCH_SIZE,
          )
  
      return _loss_fn
  
imports: import tensorflow.compat.v2
label_desc: Use image node_id 3 for calling a global function with example usage: make_regression_logarithmic_loss_fn() and returns: _loss_fn, tf