code: def test_counter():
      class DummyCounter(AbstractCounter):
          pass
  
      DummyCounter.__abstractmethods__ = set()
      c = DummyCounter(
          "test_counter", "A test counter", ("service", "tenant")
      )
      assert c.name == "test_counter"
      assert c.description == "A test counter"
      assert c.tag_keys == ("service", "tenant")
      assert c.type == "Counter"
      assert c.record(1, {"service": "mars", "tenant": "test"}) is None
  
file_path: mars/mars/metrics/backends/tests/test_metric.py
imports: import pytest
  from ..metric import AbstractMetric, AbstractCounter, AbstractGauge, AbstractMeter, AbstractHistogram
label_desc: Use image node_id 3 for calling a global function with example usage: test_counter() without return types