code: def test_ner_extractor_hf_backend(
      raw_texts, hf_annotations, batch_size
  ):
      extractor = NamedEntityExtractor(
          backend=NamedEntityExtractorBackend.HUGGING_FACE,
          model_name_or_path="dslim/bert-base-NER",
      )
      extractor.warm_up()
  
      _extract_and_check_predictions(
          extractor, raw_texts, hf_annotations, batch_size
      )
  
file_path: haystack/e2e/pipelines/test_named_entity_extractor.py
imports: import pytest
  from haystack import Document, Pipeline, ComponentError
  from haystack.components.extractors import NamedEntityAnnotation, NamedEntityExtractor, NamedEntityExtractorBackend
label_desc: Use image node_id 5 for calling a global function with example usage: test_ner_extractor_hf_backend(raw_texts, hf_annotations, batch_size) without return types