code: def test_rbm_verbose():
      rbm = BernoulliRBM(n_iter=2, verbose=10)
      old_stdout = sys.stdout
      sys.stdout = StringIO()
      try:
          rbm.fit(Xdigits)
      finally:
          sys.stdout = old_stdout
  
imports: import re
  import sys
  from io import StringIO
  import numpy
  import pytest
  from sklearn.datasets import load_digits
  from sklearn.neural_network import BernoulliRBM
  from sklearn.utils._testing import assert_allclose, assert_almost_equal, assert_array_equal
  from sklearn.utils.fixes import CSC_CONTAINERS, CSR_CONTAINERS, LIL_CONTAINERS
  from sklearn.utils.validation import assert_all_finite
label_desc: Use image node_id 10 for calling a global function with example usage: test_rbm_verbose() without return types