@classmethod
    def range(cls, field, from_value=None, to_value=None, include_lower=None, include_upper=None):

        instance = cls({'range': {field: {}}})
        if from_value is not None:
            instance['range'][field]['from'] = from_value
        if to_value is not None:
            instance['range'][field]['to'] = to_value
        if include_lower is not None:
            instance['range'][field]['include_lower'] = include_lower
        if include_upper is not None:
            instance['range'][field]['include_upper'] = include_upper

        return instance
Internal method used to decorate parse actions that take fewer than 3 arguments,
dataset/ETHPy150Open ooici/elasticpy/elasticpy/filter.py/ElasticFilter.range--crossover with--dataset/ETHPy150Open ipython/ipython-py3k/IPython/external/pyparsing/_pyparsing.py/ParserElement._normalizeParseActionArgs