code: def norm_emb(self, embedding):
      output_shape = embedding.shape
      embedding = tf.reshape(embedding, [-1, self.ent_dim])
      embedding = tf.nn.l2_normalize(embedding, 1)
      output_shape = [
          d if d is not None else -1 for d in output_shape.as_list()
      ]
      embedding = tf.reshape(embedding, output_shape)
      return embedding
  
file_path: euler/examples/TransX/transX.py
imports: import tensorflow
  import tf_euler
  import collections
label_desc: Use image node_id 4 for calling the TransX obj's underlying member method code with example usage: obj.norm_emb(embedding) and returns: embedding