code: def test_query_metric(self, mock_time, mock_query):
      now = 12345
      mock_time.return_value = now
      mock_query.return_value = {"status": "ok"}
      self.hook.query_metric("query", 60, 30)
      mock_query.assert_called_once_with(
          start=now - 60,
          end=now - 30,
          query="query",
      )
  
file_path: airflow/tests/providers/datadog/hooks/test_datadog.py
imports: from __future__ import annotations
  import json
  from unittest import mock
  import pytest
  from airflow.exceptions import AirflowException
  from airflow.models import Connection
  from airflow.providers.datadog.hooks.datadog import DatadogHook
label_desc: Use image node_id 6 for calling the TestDatadogHook obj's underlying member method code with example usage: obj.test_query_metric(mock_time, mock_query) without return types