code: def test_encode_single_sentences(
      paraphrase_distilroberta_base_v1_model: SentenceTransformer,
  ) -> None:
      model = paraphrase_distilroberta_base_v1_model
      # Single sentence
      emb = model.encode("Hello Word, a test sentence")
      assert emb.shape == (768,)
      assert abs(np.sum(emb) - 7.9811716) < 0.001
  
      # Single sentence as list
      emb = model.encode(["Hello Word, a test sentence"])
      assert emb.shape == (1, 768)
      assert abs(np.sum(emb) - 7.9811716) < 0.001
  
      # Sentence list
      emb = model.encode(
          [
              "Hello Word, a test sentence",
              "Here comes another sentence",
              "My final sentence",
          ]
      )
      assert emb.shape == (3, 768)
      assert abs(np.sum(emb) - 22.968266) < 0.001
  
imports: import numpy
  from sentence_transformers import SentenceTransformer
label_desc: Use image node_id 2 for calling a global function with example usage: test_encode_single_sentences(paraphrase_distilroberta_base_v1_model) without return types