def METHOD_NAME(self, instance, dd_run_check, datadog_agent):
    # type: (Instance, Callable, DatadogAgentStub) -> None
    with mock.patch(self.VERSION_MOCK_TARGET, side_effect=ValueError('Oops!')):
        check_id = 'test'
        check = RethinkDBCheck('rethinkdb', {}, [instance])
        check.check_id = check_id
        dd_run_check(check)
        datadog_agent.assert_metadata(check_id, {})