docstr: Test invalid body type for `SlackWebhookHook.send_dict` method.
docstr_tok: ["Test","invalid","body","type","for","`","SlackWebhookHook.send_dict","`","method","."]
code: def test_hook_send_dict_invalid_type(
      self, mock_webhook_client_cls, send_body
  ):
      """Test invalid body type for `SlackWebhookHook.send_dict` method."""
      mock_webhook_client = mock_webhook_client_cls.return_value
      mock_webhook_client_send_dict = mock_webhook_client.send_dict
      mock_webhook_client_send_dict.return_value = MOCK_WEBHOOK_RESPONSE
  
      hook = SlackWebhookHook(slack_webhook_conn_id=TEST_CONN_ID)
      with pytest.raises(
          TypeError, match=r"Body expected dictionary, got .*\."
      ):
          hook.send_dict(body=send_body)
      assert mock_webhook_client_send_dict.assert_not_called
  
imports: from __future__ import annotations
  import json
  import os
  from typing import Any
  from unittest import mock
  from unittest.mock import patch
  import pytest
  from slack_sdk.http_retry.builtin_handlers import ConnectionErrorRetryHandler, RateLimitErrorRetryHandler
  from slack_sdk.webhook.webhook_response import WebhookResponse
  from airflow.exceptions import AirflowException, AirflowNotFoundException
  from airflow.models.connection import Connection
  from airflow.providers.slack.hooks.slack_webhook import SlackWebhookHook, check_webhook_response
label_desc: Use image node_id 8 for calling the TestSlackWebhookHook obj's underlying member method code with example usage: obj.test_hook_send_dict_invalid_type(mock_webhook_client_cls, send_body) without return types