def _build_op_js(self, op, key, value, value_name):
        if isinstance(value, RE_TYPE):
            # Regexes are handled specially
            if op.strip('$') == 'ne':
                op_js = Q.OPERATORS['regex_ne']
            else:
                op_js = Q.OPERATORS['regex_eq']
        else:
            op_js = Q.OPERATORS[op.strip('$')]

        # Perform the substitution
        operation_js = op_js % {
            'field': key, 
            'value': value_name
        }
        return value, operation_js
Given a nested Python list or a numpy array, this method
dataset/ETHPy150Open aparo/django-elasticsearch/django_elasticsearch/manager.py/Q._build_op_js--crossover with--dataset/ETHPy150Open enthought/mayavi/tvtk/array_handler.py/array2vtkCellArray