code: def test_basis_change():
      basis1 = random_orth(names="xyz")
      basis2 = random_orth(names="uvw")
  
      bchange = MG.Linear(
          basis2.coords, basis1.coords, random_orth(dim=3).matrix
      )
      # print basis1.coords
      new = MG.change_basis(basis1, bchange)
  
      assert MG.same_transformation(basis1, new, bchange)
  
file_path: nipy/nipy/core/reference/tests/test_matrix_groups.py
imports: import numpy
  import pytest
  from scipy.linalg import expm
  import nipy.core.reference.tests.matrix_groups
  from nipy.core.api import ArrayCoordMap
label_desc: Use image node_id 4 for calling a global function with example usage: test_basis_change() without return types