def METHOD_NAME(self):
    timer = pretend.stub()
    datadog = pretend.stub(timed=pretend.call_recorder(lambda *a, **k: timer))
    metrics = DataDogMetrics(datadog)
    assert (
        metrics.timed("thing.timed", tags=["wat"], sample_rate=0.4, use_ms=True)
        is timer
    )
    assert datadog.timed.calls == [
        pretend.call("thing.timed", tags=["wat"], sample_rate=0.4, use_ms=True)
    ]