code: def test_rb_check_defaults():
      rb = RecoBundles(f, greater_than=0, clust_thr=10)
  
      rec_trans, rec_labels = rb.recognize(
          model_bundle=f2, model_clust_thr=5.0, reduction_thr=10
      )
  
      msg = "Streamlines do not have the same number of points. *"
      with warnings.catch_warnings():
          warnings.filterwarnings(
              "ignore", message=msg, category=UserWarning
          )
          D = bundles_distances_mam(f2, f[rec_labels])
  
      # check if the bundle is recognized correctly
      if len(f2) == len(rec_labels):
          for row in D:
              assert_equal(row.min(), 0)
  
      refine_trans, refine_labels = rb.refine(
          model_bundle=f2,
          pruned_streamlines=rec_trans,
          model_clust_thr=5.0,
          reduction_thr=10,
      )
  
      with warnings.catch_warnings():
          warnings.filterwarnings(
              "ignore", message=msg, category=UserWarning
          )
          D = bundles_distances_mam(f2, f[refine_labels])
  
      # check if the bundle is recognized correctly
      for row in D:
          assert_equal(row.min(), 0)
  
file_path: dipy/dipy/segment/tests/test_bundles.py
imports: import sys
  import pytest
  import warnings
  import numpy
  from numpy.testing import assert_equal, assert_almost_equal
  from dipy.data import get_fnames
  from dipy.io.streamline import load_tractogram
  from dipy.segment.bundles import RecoBundles
  from dipy.tracking.distances import bundles_distances_mam
  from dipy.tracking.streamline import Streamlines
  from dipy.segment.clustering import qbx_and_merge
  from dipy.testing.decorators import set_random_number_generator
label_desc: Use image node_id 2 for calling a global function with example usage: test_rb_check_defaults() without return types