code: def ner_monitor(
      nlp: Language,
      api: Api,
      dataset: str,
      sample_rate: float,
      log_interval: float,
  ) -> Language:
      return SpacyNERMonitor(
          nlp,
          api=api,
          dataset=dataset,
          sample_rate=sample_rate,
          log_interval=log_interval,
      )
  
file_path: argilla/src/argilla/monitoring/_spacy.py
imports: from datetime import datetime
  from typing import Any, Dict, Optional, Tuple
  from argilla import TokenClassificationRecord
  from argilla.client.api import Api
  from argilla.monitoring.base import BaseMonitor
  from argilla.monitoring.types import MissingType
label_desc: Use image node_id 1 for calling a global function with example usage: ner_monitor(nlp, api, dataset, sample_rate, log_interval) and returns: SpacyNERMonitor