def index(self, value):
        return self._type.index(value)
Query formatter
dataset/ETHPy150Open openstack/nova/nova/objects/fields.py/ResourceClassField.index--crossover with--dataset/ETHPy150Open chartbeat-labs/parselmouth/parselmouth/adapters/dfp/client.py/DFPClient._format_query