code: def test_paraphrase_mining() -> None:
      model = SentenceTransformer("all-MiniLM-L6-v2")
      sentences = [
          "This is a test",
          "This is a test!",
          "The cat sits on mat",
          "The cat sits on the mat",
          "On the mat a cat sits",
          "A man eats pasta",
          "A woman eats pasta",
          "A man eats spaghetti",
      ]
      duplicates = util.paraphrase_mining(model, sentences)
  
      for score, a, b in duplicates:
          if score > 0.5:
              assert (a, b) in [
                  (0, 1),
                  (2, 3),
                  (2, 4),
                  (3, 4),
                  (5, 6),
                  (5, 7),
                  (6, 7),
              ]
  
file_path: sentence-transformers/tests/test_util.py
imports: import numpy
  import sklearn
  import torch
  from sentence_transformers import SentenceTransformer, util
label_desc: Use image node_id 4 for calling a global function with example usage: test_paraphrase_mining() without return types