code: def delete_state_machine(state_machine_arn):
      StepFunctionHook().get_conn().delete_state_machine(
          stateMachineArn=state_machine_arn
      )
  
file_path: airflow/tests/system/providers/amazon/aws/example_step_functions.py
imports: from __future__ import annotations
  import json
  from datetime import datetime
  from airflow.decorators import task
  from airflow.models.baseoperator import chain
  from airflow.models.dag import DAG
  from airflow.providers.amazon.aws.hooks.step_function import StepFunctionHook
  from airflow.providers.amazon.aws.operators.step_function import StepFunctionGetExecutionOutputOperator, StepFunctionStartExecutionOperator
  from airflow.providers.amazon.aws.sensors.step_function import StepFunctionExecutionSensor
  from tests.system.providers.amazon.aws.utils import ENV_ID_KEY, SystemTestContextBuilder
  from tests.system.utils import get_test_run
label_desc: Use image node_id 2 for calling a global function with example usage: delete_state_machine(state_machine_arn) without return types