def METHOD_NAME(a: numpy.ndarray, kind: str, b: numpy.ndarray) -> numpy.ndarray:
    """
    :param a:
    :param kind: "equal", "less", "less_equal", "greater", "greater_equal", "not_equal"
    :param b:
    :return: a `kind` b
    """
    assert a.ndim == b.ndim or a.ndim == 0 or b.ndim == 0
    op = getattr(numpy, kind)  # e.g. numpy.equal
    return op(a, b)