code: def _received_edges_normalizer(
      graph, normalizer, name="received_edges_normalizer"
  ):
      """Performs elementwise normalization for all received edges by a given node.
  
      Args:
        graph: A graph containing edge information.
        normalizer: A normalizer function following the signature of
          `modules._unsorted_segment_softmax`.
        name: A name for the operation (optional).
  
      Returns:
        A tensor with the resulting normalized edges.
  
      """
      with tf.name_scope(name):
          return normalizer(
              data=graph.edges,
              segment_ids=graph.receivers,
              num_segments=tf.reduce_sum(graph.n_node),
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from graph_nets import _base
  from graph_nets import blocks
  import tensorflow
label_desc: Use image node_id 5 for calling a global function with example usage: _received_edges_normalizer(graph, normalizer, name) and returns: normalizer