class_docstr: Base class for testing expected errors for pattern mining.
class_docstr_tok: ["Base","class","for","testing","expected","errors","for","pattern","mining","."]
code: def setUp(self, fpalgo):
      self.one_ary = np.array(
          [
              [0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1],
              [0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1],
              [1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0],
              [0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1],
              [0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0],
          ]
      )
      self.cols = [
          "Apple",
          "Corn",
          "Dill",
          "Eggs",
          "Ice cream",
          "Kidney Beans",
          "Milk",
          "Nutmeg",
          "Onion",
          "Unicorn",
          "Yogurt",
      ]
      self.df = pd.DataFrame(self.one_ary, columns=self.cols)
      self.fpalgo = fpalgo
  
imports: import sys
  from contextlib import contextmanager
  from io import StringIO
  import numpy
  import pandas
  from numpy.testing import assert_array_equal
  from packaging.version import Version
  from pandas import __version__
  from scipy.sparse import csr_matrix
  from mlxtend.preprocessing import TransactionEncoder
  from mlxtend.utils import assert_raises
label_desc: Use image node_id 1 for calling the FPTestErrors obj's underlying member method code with example usage: obj.setUp(fpalgo) without return types