code: def loss_fn(labels, logits):
      cross_entropy = tf.reduce_mean(
          tf.nn.sigmoid_cross_entropy_with_logits(
              labels=labels, logits=logits
          )
      )
      reg_loss = tf.losses.get_regularization_loss()
      return cross_entropy + reg_loss
  
imports: import warnings
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling a global function with example usage: loss_fn(labels, logits) and returns: unknown