def METHOD_NAME(
    self,
    create_iam_role_for_sfn,
    create_state_machine,
    sfn_snapshot,
    aws_client,
):
    snf_role_arn = create_iam_role_for_sfn()
    sfn_snapshot.add_transformer(RegexTransformer(snf_role_arn, "snf_role_arn"))
    definition = BaseTemplate.load_sfn_template(BaseTemplate.BASE_PASS_RESULT)
    definition_str = json.dumps(definition)
    sm_name = f"statemachine_{short_uid()}"
    creation_resp_1 = create_state_machine(
        name=sm_name, definition=definition_str, roleArn=snf_role_arn
    )
    state_machine_arn = creation_resp_1["stateMachineArn"]
    sfn_snapshot.add_transformer(sfn_snapshot.transform.sfn_sm_create_arn(creation_resp_1, 0))
    sfn_snapshot.match("creation_resp_1", creation_resp_1)
    publish_resp = aws_client.stepfunctions.publish_state_machine_version(
        stateMachineArn=state_machine_arn
    )
    state_machine_version_arn = publish_resp["stateMachineVersionArn"]
    sfn_snapshot.match("publish_resp", publish_resp)
    with pytest.raises(Exception) as error:
        aws_client.stepfunctions.tag_resource(
            resourceArn=state_machine_version_arn, tags=[Tag(key="key1", value="value1")]
        )
    sfn_snapshot.match("error", error.value)