code: def _do_operator_comparison(operator_type, operator_name, comparison_value):
      
      def fallback(*args, **kwargs):
          raise AssertionError("Operator {0} does not exist for type {1}".format(
              operator_name, operator_type.__class__.__name__))
      method = getattr(operator_type, operator_name, fallback)
      if getattr(method, 'input_type', '') == FIELD_NO_INPUT:
          return method()
      return method(comparison_value)
docs: Finds the method on the given operator_type and compares it to the
      given comparison_value.
  
      operator_type should be an instance of operators.BaseType
      comparison_value is whatever python type to compare to
      returns a bool