def test_unsubscribe_resource_from_alarm(self, patched_env,
                                             patched_resource, patched_client):
        """
        Test the unsubscribe_resource_from_alarm function
        """
        from chalicelib import cloudwatch

        class alarm_dict(dict):
            """
            Testing class of dictionary with attributes
            """

        d = alarm_dict()
        d.json_body = []
        cloudwatch.unsubscribe_resource_from_alarm(d, "alarm", REGION)
def unsubscribe_resource_from_alarm(alarm_name, region):
    """
    API entry point to unsubscribe one or more nodes to a CloudWatch alarm in a region.
    """
    return cloudwatch_data.unsubscribe_resource_from_alarm(
        app.current_request, alarm_name, region)