code: def test_rb_no_neighb():
      # what if no neighbors are found? No recognition
  
      b = Streamlines(fornix)
      b1 = b.copy()
  
      b2 = b1[:20].copy()
      b2._data += np.array([100, 0, 0])
  
      b3 = b1[:20].copy()
      b3._data += np.array([300, 0, 0])
  
      b.extend(b3)
  
      rb = RecoBundles(b, greater_than=0, clust_thr=10)
  
      rec_trans, rec_labels = rb.recognize(
          model_bundle=b2, model_clust_thr=5.0, reduction_thr=10
      )
  
      if len(rec_trans) > 0:
          refine_trans, refine_labels = rb.refine(
              model_bundle=b2,
              pruned_streamlines=rec_trans,
              model_clust_thr=5.0,
              reduction_thr=10,
          )
  
          assert_equal(len(refine_labels), 0)
          assert_equal(len(refine_trans), 0)
  
      else:
          assert_equal(len(rec_labels), 0)
          assert_equal(len(rec_trans), 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 7 for calling a global function with example usage: test_rb_no_neighb() without return types