class_docstr: Tests for the _sparse_expand_matrix function.
class_docstr_tok: ["Tests","for","the","_sparse_expand_matrix","function","."]
docstr: Tests the case where the original matrix is not changed
docstr_tok: ["Tests","the","case","where","the","original","matrix","is","not","changed"]
code: def test_no_expansion(self):
      """Tests the case where the original matrix is not changed"""
      res = qml.math.expand_matrix(
          self.base_matrix_2, wires=[0, 2], wire_order=[0, 2]
      )
      assert isinstance(res, type(self.base_matrix_2))
      assert all(res.data == self.base_matrix_2.data)
      assert all(res.indices == self.base_matrix_2.indices)
  
imports: from functools import reduce
  import numpy
  import pytest
  from gate_data import CNOT, II, SWAP, I, Toffoli
  from scipy.sparse import csr_matrix
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 3 for calling the TestExpandMatrixSparse obj's underlying member method code with example usage: obj.test_no_expansion() without return types