code: def test_compute_score():
      model = DistMult(k=7)
  
      triples = [
          np.array(
              [[1, 1, 1, 1, 1, 1, 1], [10, 10, 10, 10, 10, 10, 10]]
          ).astype(np.float32),
          np.array(
              [
                  [5, 5, 5, 5, 5, 5, 5],
                  [100, 100, 100, 100, 100, 100, 100],
              ]
          ).astype(np.float32),
          np.array(
              [[4, 4, 4, 4, 4, 4, 4], [9, 9, 9, 9, 9, 9, 9]]
          ).astype(np.float32),
      ]
  
      scores = np.around(model._compute_scores(triples).numpy(), 2)
      assert (
          scores == np.array([140, 63000], dtype=np.float32)
      ).all(), "DistMult: Scores don't match!"
  
imports: from ampligraph.latent_features.layers.scoring import DistMult
  import pytest
  import tensorflow
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: test_compute_score() without return types