def METHOD_NAME(make_stubber, secret_value, error_code):
    secretsmanager_client = boto3.client('secretsmanager')
    secretsmanager_stubber = make_stubber(secretsmanager_client)
    secret = SecretsManagerSecret(secretsmanager_client)
    name = 'test-name'
    secretsmanager_stubber.stub_create_secret(
        name, secret_value, error_code=error_code)
    if error_code is None:
        secret.create(name, secret_value)
        assert secret.name == name
    else:
        with pytest.raises(ClientError) as exc_info:
            secret.create(name, secret_value)
        assert exc_info.value.response['Error']['Code'] == error_code