code: def db_snapshot(
      rds_hook: RdsHook, db_instance_id: str
  ) -> DBSnapshotTypeDef:
      """
      Creates a mock DB instance snapshot and returns the DBSnapshot dict from the boto response object.
      https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/rds.html#RDS.Client.create_db_snapshot
      """
      response = rds_hook.conn.create_db_snapshot(
          DBSnapshotIdentifier="testrdshook-db-instance-snapshot",
          DBInstanceIdentifier=db_instance_id,
      )
      return response["DBSnapshot"]
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Generator
  from unittest.mock import patch
  import pytest
  from moto import mock_rds
  from airflow.exceptions import AirflowException, AirflowNotFoundException
  from airflow.providers.amazon.aws.hooks.rds import RdsHook
label_desc: Use image node_id 4 for calling a global function with example usage: db_snapshot(rds_hook, db_instance_id) and returns: response