code: def test_transform():
      oht = TransactionEncoder()
      oht.fit(dataset)
      trans = oht.transform(dataset)
      np.testing.assert_array_equal(expect, trans)
  
file_path: mlxtend/mlxtend/preprocessing/tests/test_transactionencoder.py
imports: import numpy
  from scipy.sparse import csr_matrix
  from sklearn.base import clone
  from mlxtend.preprocessing import TransactionEncoder
  from mlxtend.utils import assert_raises
label_desc: Use image node_id 2 for calling a global function with example usage: test_transform() without return types