def METHOD_NAME(self, method):
    """
    create a matcher function pointer which calls the given
    method as method(item_to_match, data) on dereference
    :param function method: function reference
    :return: function pointer
    :rtype: object
    """
    def create_method(item_to_match, data):
        return method(item_to_match, data)
    return create_method