code: def _test_dtrXm(A, U, L, B, alpha, blasfn):
      # Test: U*B
      Dgold = alpha * np.dot(U, B)
      D = blasfn(0, 0, 0, 0, alpha, A, B)
      assert_almost_equal(Dgold, D)
      # Test: B*U
      Dgold = alpha * np.dot(B, U)
      D = blasfn(1, 0, 0, 0, alpha, A, B)
      assert_almost_equal(Dgold, D)
      # Test: U'*B
      Dgold = alpha * np.dot(U.T, B)
      D = blasfn(0, 0, 1, 0, alpha, A, B)
      assert_almost_equal(Dgold, D)
      # Test: B*U'
      Dgold = alpha * np.dot(B, U.T)
      D = blasfn(1, 0, 1, 0, alpha, A, B)
      assert_almost_equal(Dgold, D)
      # Test: L*B
      Dgold = alpha * np.dot(L, B)
      D = blasfn(0, 1, 0, 0, alpha, A, B)
      assert_almost_equal(Dgold, D)
      # Test: B*L
      Dgold = alpha * np.dot(B, L)
      D = blasfn(1, 1, 0, 0, alpha, A, B)
      assert_almost_equal(Dgold, D)
      # Test: L'*B
      Dgold = alpha * np.dot(L.T, B)
      D = blasfn(0, 1, 1, 0, alpha, A, B)
      assert_almost_equal(Dgold, D)
      # Test: B*L'
      Dgold = alpha * np.dot(B, L.T)
      D = blasfn(1, 1, 1, 0, alpha, A, B)
      assert_almost_equal(Dgold, D)
      # Test: U*B
      Dgold = alpha * np.dot(U, B)
      D = blasfn(0, 0, 0, 0, alpha, A, B)
      assert_almost_equal(Dgold, D)
      # Test: B*U
      Dgold = alpha * np.dot(B, U)
      D = blasfn(1, 0, 0, 0, alpha, A, B)
      assert_almost_equal(Dgold, D)
      # Test: U'*B
      Dgold = alpha * np.dot(U.T, B)
      D = blasfn(0, 0, 1, 0, alpha, A, B)
      assert_almost_equal(Dgold, D)
      # Test: B*U'
      Dgold = alpha * np.dot(B, U.T)
      D = blasfn(1, 0, 1, 0, alpha, A, B)
      assert_almost_equal(Dgold, D)
      # Test: L*B
      Dgold = alpha * np.dot(L, B)
      D = blasfn(0, 1, 0, 0, alpha, A, B)
      assert_almost_equal(Dgold, D)
      # Test: B*L
      Dgold = alpha * np.dot(B, L)
      D = blasfn(1, 1, 0, 0, alpha, A, B)
      assert_almost_equal(Dgold, D)
      # Test: L'*B
      Dgold = alpha * np.dot(L.T, B)
      D = blasfn(0, 1, 1, 0, alpha, A, B)
      assert_almost_equal(Dgold, D)
      # Test: B*L'
      Dgold = alpha * np.dot(B, L.T)
      D = blasfn(1, 1, 1, 0, alpha, A, B)
      assert_almost_equal(Dgold, D)
  
file_path: nipy/nipy/labs/bindings/tests/test_blas3.py
imports: import numpy
  from numpy.testing import assert_almost_equal
  from ..None import blas_dgemm, blas_dsymm, blas_dsyr2k, blas_dsyrk, blas_dtrmm, blas_dtrsm
label_desc: Use image node_id 3 for calling a global function with example usage: _test_dtrXm(A, U, L, B, alpha, blasfn) without return types