code: def test_create_partition_with_client_error(self, mocked_connection):
      mocked_client = mock.Mock()
      mocked_client.create_partition.side_effect = ClientError(
          {}, "create_partition"
      )
      mocked_connection.return_value = mocked_client
  
      with pytest.raises(AirflowException):
          self.hook.create_partition(
              DB_NAME, TABLE_NAME, PARTITION_INPUT
          )
  
      mocked_client.create_partition.assert_called_once_with(
          DatabaseName=DB_NAME,
          TableName=TABLE_NAME,
          PartitionInput=PARTITION_INPUT,
      )
  
imports: from __future__ import annotations
  from unittest import mock
  import boto3
  import pytest
  from botocore.exceptions import ClientError
  from moto import mock_glue
  from airflow.exceptions import AirflowException
  from airflow.providers.amazon.aws.hooks.glue_catalog import GlueCatalogHook
label_desc: Use image node_id 15 for calling the TestGlueCatalogHook obj's underlying member method code with example usage: obj.test_create_partition_with_client_error(mocked_connection) without return types