code: def test_sparse_expm_multiply_interval(self):
      np.random.seed(1234)
      start = 0.1
      stop = 3.2
      n = 40
      k = 3
      endpoint = True
      for num in (14, 13, 2):
          A = scipy.sparse.rand(n, n, density=0.05)
          B = np.random.randn(n, k)
          v = np.random.randn(n)
          for target in (B, v):
              X = expm_multiply(
                  A,
                  target,
                  start=start,
                  stop=stop,
                  num=num,
                  endpoint=endpoint,
              )
              samples = np.linspace(
                  start=start, stop=stop, num=num, endpoint=endpoint
              )
              with suppress_warnings() as sup:
                  sup.filter(
                      SparseEfficiencyWarning,
                      "splu requires CSC matrix format",
                  )
                  sup.filter(
                      SparseEfficiencyWarning,
                      "spsolve is more efficient when sparse b is in the CSC matrix format",
                  )
                  for solution, t in zip(X, samples):
                      assert_allclose(
                          solution, scipy.linalg.expm(t * A).dot(target)
                      )
  
imports: from __future__ import division, print_function, absolute_import
  import numpy
  from numpy.testing import assert_allclose, assert_, assert_equal
  from scipy._lib._numpy_compat import suppress_warnings
  from scipy.sparse import SparseEfficiencyWarning
  import scipy.linalg
  from scipy.sparse.linalg._expm_multiply import _theta, _compute_p_max, _onenormest_matrix_power, expm_multiply, _expm_multiply_simple, _expm_multiply_interval
label_desc: Use image node_id 1 for calling the TestExpmActionInterval obj's underlying member method code with example usage: obj.test_sparse_expm_multiply_interval() without return types