class_docstr: Basic tests for some simple functionality.
class_docstr_tok: ["Basic","tests","for","some","simple","functionality","."]
code: def test_repetitions_words(self):
      input_word_embeddings = np.array(
          [
              np.array([[0.1, 0.1], [0.2, 0.2]]),  # sentence 1
              np.array([[0.1, 0.1]]),  # sentence 2
          ]
      )
      desired_similarity = 1.0
      similarity = self.reasoning_evaluator.repetitions(
          input_word_embeddings
      )
      self.assertAlmostEqual(desired_similarity, similarity, places=2)
  
      input_word_embeddings = np.array(
          [
              np.array([[0.1, 0.1]]),  # sentence 1
              np.array([[-0.1, -0.1]]),  # sentence 2
          ]
      )
      desired_similarity = 0.0
      similarity = self.reasoning_evaluator.repetitions(
          input_word_embeddings
      )
      self.assertAlmostEqual(desired_similarity, similarity, places=2)
  
file_path: ParlAI/tests/nightly/cpu/test_roscoe.py
imports: import unittest
  from unittest.mock import patch
  import numpy
label_desc: Use image node_id 3 for calling the TestEvaluator obj's underlying member method code with example usage: obj.test_repetitions_words() without return types