code: def calculate_scores(self, src_emb, rel_emb, dst_emb):
      if self.l1:
          scores = tf.norm(src_emb + rel_emb - dst_emb, ord=1, axis=-1)
      else:
          scores = tf.norm(
              src_emb + rel_emb - dst_emb, ord="euclidean", axis=-1
          )
      scores = tf.negative(scores)
      return scores
  
file_path: euler/examples/TransX/transX.py
imports: import tensorflow
  import tf_euler
  import collections
label_desc: Use image node_id 5 for calling the TransX obj's underlying member method code with example usage: obj.calculate_scores(src_emb, rel_emb, dst_emb) and returns: scores