code: def test_call_metrics_with_no_api_client_initialized(api: Argilla):
      for metric in ALL_METRICS:
          if metric == entity_consistency:
              continue
  
          ArgillaSingleton.clear()
          with pytest.raises(NotFoundApiError):
              metric("not_found")
  
file_path: argilla/tests/integration/test_log_for_token_classification.py
imports: import argilla
  import pytest
  from argilla import TokenClassificationRecord
  from argilla.client import api
  from argilla.client.client import Argilla
  from argilla.client.sdk.commons.errors import NotFoundApiError
  from argilla.client.singleton import ArgillaSingleton
  from argilla.metrics import __all__
  from argilla.metrics import entity_consistency
  from tests.integration.utils import delete_ignoring_errors
label_desc: Use image node_id 3 for calling a global function with example usage: test_call_metrics_with_no_api_client_initialized(api) without return types