code: def test_low_memory_flag(self):
      import inspect
  
      if "low_memory" in inspect.signature(self.fpalgo).parameters:
          with captured_output() as (out, err):
              _ = self.fpalgo(self.df, low_memory=True, verbose=1)
  
          # Only get the last value of the stream to reduce test noise
          expect = (
              "Processing 4 combinations | Sampling itemset size 3\n"
          )
          out = out.getvalue().split("\r")[-1]
          assert out == expect
      else:
          # If there is no low_memory argument, don't run the test.
          assert True
  
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 4 for calling the FPTestEx1All obj's underlying member method code with example usage: obj.test_low_memory_flag() without return types