code: def test_create_instance(
      self, hook: SageMakerHook, create_instance_args, capsys
  ):
      # create a notebook
      resp = hook.conn.create_notebook_instance(**create_instance_args)
      assert resp["NotebookInstanceArn"]
  
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 TestSageMakerHook obj's underlying member method code with example usage: obj.test_create_instance(hook, create_instance_args, capsys) without return types