code: def _is_reduced_by_average(key):
      return key in (
          tf.compat.v1.losses.Reduction.MEAN,
          tf.compat.v1.losses.Reduction.SUM_BY_NONZERO_WEIGHTS,
          tf.compat.v1.losses.Reduction.SUM_OVER_BATCH_SIZE,
          tf.compat.v1.losses.Reduction.SUM_OVER_NONZERO_WEIGHTS,
      )
  
file_path: neural-structured-learning/neural_structured_learning/lib/distances.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import neural_structured_learning.configs
  import tensorflow
label_desc: Use image node_id 9 for calling a global function with example usage: _is_reduced_by_average(key) and returns: unknown