code: def test_post_event(self, mock_create):
      mock_create.return_value = {"status": "ok"}
      self.hook.post_event(
          TITLE,
          TEXT,
          aggregation_key=AGGREGATION_KEY,
          alert_type=ALERT_TYPE,
          date_happened=DATE_HAPPENED,
          handle=HANDLE,
          priority=PRIORITY,
          related_event_id=RELATED_EVENT_ID,
          tags=TAGS,
          device_name=DEVICE_NAME,
      )
      mock_create.assert_called_once_with(
          title=TITLE,
          text=TEXT,
          aggregation_key=AGGREGATION_KEY,
          alert_type=ALERT_TYPE,
          date_happened=DATE_HAPPENED,
          handle=HANDLE,
          priority=PRIORITY,
          related_event_id=RELATED_EVENT_ID,
          tags=TAGS,
          host=self.hook.host,
          device_name=DEVICE_NAME,
          source_type_name=self.hook.source_type_name,
      )
  
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 7 for calling the TestDatadogHook obj's underlying member method code with example usage: obj.test_post_event(mock_create) without return types