def METHOD_NAME():
    mode = get_default_mode()
    mode = mode.including("specialize", "local_mul_s_d")
    for sp_format in sparse.sparse_formats:
        inputs = [getattr(pytensor.sparse, sp_format + "_matrix")(), matrix()]
        f = pytensor.function(inputs, sparse.mul_s_d(*inputs), mode=mode)
        assert not any(
            isinstance(node.op, sparse.MulSD) for node in f.maker.fgraph.toposort()
        )