def METHOD_NAME():
    client = boto3.client("swf", region_name="us-east-1")
    client.register_domain(
        name="test-domain", workflowExecutionRetentionPeriodInDays="60"
    )
    client.deprecate_domain(name="test-domain")
    client.undeprecate_domain(name="test-domain")
    with pytest.raises(ClientError):
        client.undeprecate_domain(name="test-domain")