code: def test_delete_notebook_wait_for_completion(
      self, mock_hook_conn, hook
  ):
      operator = SageMakerDeleteNotebookOperator(
          task_id="delete_test",
          instance_name=INSTANCE_NAME,
          wait_for_completion=True,
      )
      operator.execute(None)
      hook.conn.delete_notebook_instance.assert_called_once()
      mock_hook_conn.get_waiter.assert_called_once_with(
          "notebook_instance_deleted"
      )
  
imports: from __future__ import annotations
  from typing import Generator
  from unittest import mock
  import pytest
  from moto import mock_sagemaker
  from airflow.providers.amazon.aws.hooks.sagemaker import SageMakerHook
  from airflow.providers.amazon.aws.operators.sagemaker import SageMakerCreateNotebookOperator, SageMakerDeleteNotebookOperator, SageMakerStartNoteBookOperator, SageMakerStopNotebookOperator
label_desc: Use image node_id 2 for calling the TestSageMakerDeleteNotebookOperator obj's underlying member method code with example usage: obj.test_delete_notebook_wait_for_completion(mock_hook_conn, hook) without return types