code: def _check_arrays_equal(self, a1, a2):
      if scipy.sparse.issparse(a1):
          a1 = a1.toarray()
      if scipy.sparse.issparse(a2):
          a2 = a2.toarray()
      np.testing.assert_array_almost_equal(a1, a2)
  
file_path: auto-sklearn/test/test_pipeline/implementations/test_SparseOneHotEncoder.py
imports: import numpy
  import scipy.sparse
  import sklearn.datasets
  import sklearn.model_selection
  import sklearn.pipeline
  import sklearn.tree
  from sklearn.impute import SimpleImputer
  from sklearn.tree import DecisionTreeClassifier
  from autosklearn.pipeline.implementations.CategoryShift import CategoryShift
  from autosklearn.pipeline.implementations.SparseOneHotEncoder import SparseOneHotEncoder
  import unittest
label_desc: Use image node_id 5 for calling the TestSparseOneHotEncoder obj's underlying member method code with example usage: obj._check_arrays_equal(a1, a2) without return types