code: def test_operation_count_fails(monkeypatch, operation):
      """Check if test fails when count operation fails."""
      operation.c_stage.instance.write("test", {"index": "value"})
      operation.c_stage.instance.write("test", {"index": "value"})
      with pytest.raises(CheckError) as ex:
          operation.check_count()
  
      assert "2" in str(ex.value)
  
imports: import pytest
  import orion.core
  import orion.core.io.experiment_builder
  import orion.core.utils.backward
  from orion.core.cli.checks.creation import CreationStage
  from orion.core.cli.checks.operations import OperationsStage
  from orion.core.cli.checks.presence import PresenceStage
  from orion.core.io.database.pickleddb import PickledDB
  from orion.core.utils.exceptions import CheckError
label_desc: Use image node_id 21 for calling a global function with example usage: test_operation_count_fails(monkeypatch, operation) without return types