class_docstr: These tests do not consider the case of multiple time steps in one call.
class_docstr_tok: ["These","tests","do","not","consider","the","case","of","multiple","time","steps","in","one","call","."]
code: def test_scaled_expm_multiply(self):
      np.random.seed(1234)
      n = 40
      k = 3
      nsamples = 10
      for i in range(nsamples):
          for t in (0.2, 1.0, 1.5):
              with np.errstate(invalid="ignore"):
                  A = scipy.linalg.inv(np.random.randn(n, n))
                  B = np.random.randn(n, k)
                  observed = _expm_multiply_simple(A, B, t=t)
                  expected = np.dot(scipy.linalg.expm(t * A), B)
                  assert_allclose(observed, expected)
  
imports: import numpy
  from numpy.testing import assert_allclose, assert_, assert_equal, 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 7 for calling the TestExpmActionSimple obj's underlying member method code with example usage: obj.test_scaled_expm_multiply() without return types