code: def test_encode_token_embeddings(
      paraphrase_distilroberta_base_v1_model: SentenceTransformer,
  ) -> None:
      """
      Test that encode(output_value='token_embeddings') works
      :return:
      """
      model = paraphrase_distilroberta_base_v1_model
      sent = [
          "Hello Word, a test sentence",
          "Here comes another sentence",
          "My final sentence",
          "Sentences",
          "Sentence five five five five five five five",
      ]
      emb = model.encode(
          sent, output_value="token_embeddings", batch_size=2
      )
      assert len(emb) == len(sent)
      for s, e in zip(sent, emb):
          assert len(model.tokenize([s])["input_ids"][0]) == e.shape[0]
  
imports: import numpy
  from sentence_transformers import SentenceTransformer
label_desc: Use image node_id 1 for calling a global function with example usage: test_encode_token_embeddings(paraphrase_distilroberta_base_v1_model) without return types