code: def test_segment_intersection():
      xyz = np.array([[1, 1, 1], [2, 2, 2], [2, 2, 2]])
      center = [10, 4, 10]
      radius = 1
      assert_equal(tm.intersect_sphere(xyz, center, radius), False)
      xyz = np.array([[1, 1, 1], [2, 2, 2], [3, 3, 3], [4, 4, 4]])
      center = [10, 10, 10]
      radius = 2
      assert_equal(tm.intersect_sphere(xyz, center, radius), False)
      xyz = np.array([[1, 1, 1], [2, 2, 2], [3, 3, 3], [4, 4, 4]])
      center = [2.1, 2, 2.2]
      radius = 2
      assert_equal(tm.intersect_sphere(xyz, center, radius), True)
  
file_path: dipy/dipy/tracking/tests/test_metrics.py
imports: import numpy
  import numpy.testing
  from numpy.testing import assert_equal, assert_array_almost_equal
  from dipy.tracking import metrics
  from dipy.tracking import distances
  from dipy.utils.deprecator import ExpiredDeprecationError
  from dipy.testing.decorators import set_random_number_generator
label_desc: Use image node_id 3 for calling a global function with example usage: test_segment_intersection() without return types