code: def test_local_mul_s_v():
      if not theano.config.cxx:
          raise SkipTest(
              "G++ not available, so we need to skip this test."
          )
      mode = theano.compile.mode.get_default_mode()
      mode = mode.including("specialize", "local_mul_s_v")
  
      for sp_format in ["csr"]:  # Not implemented for other format
          inputs = [
              getattr(theano.sparse, sp_format + "_matrix")(),
              tensor.vector(),
          ]
  
          f = theano.function(
              inputs, sparse.mul_s_v(*inputs), mode=mode
          )
  
          assert not any(
              isinstance(node.op, sparse.MulSV)
              for node in f.maker.fgraph.toposort()
          )
  
file_path: Theano/theano/sparse/tests/test_opt.py
imports: from __future__ import absolute_import, print_function, division
  from nose.plugins.skip import SkipTest
  import numpy
  import theano
  from theano import sparse, config, tensor
  from theano.sparse import enable_sparse
  from theano.tests import unittest_tools
  from theano.sparse.tests.test_basic import random_lil
label_desc: Use image node_id 4 for calling a global function with example usage: test_local_mul_s_v() without return types