code: def test_embedding_function_with_kwargs(mock_sentence_transformer):
      embedding_backend = _SentenceTransformersEmbeddingBackendFactory.get_embedding_backend(
          model="model"
      )
  
      data = ["sentence1", "sentence2"]
      embedding_backend.embed(data=data, normalize_embeddings=True)
  
      embedding_backend.model.encode.assert_called_once_with(
          data, normalize_embeddings=True
      )
  
imports: from unittest.mock import patch
  import pytest
  from haystack.components.embedders.backends.sentence_transformers_backend import _SentenceTransformersEmbeddingBackendFactory
label_desc: Use image node_id 3 for calling a global function with example usage: test_embedding_function_with_kwargs(mock_sentence_transformer) without return types