code: def test_interp_rbf():
      def data_func(s, a, b):
          return a * np.cos(s.theta) + b * np.sin(s.phi)
  
      s0 = create_unit_sphere(3)
      s1 = create_unit_sphere(4)
      for a, b in zip([1, 2, 0.5], [1, 0.5, 2]):
          data = data_func(s0, a, b)
          expected = data_func(s1, a, b)
          interp_data_a = interp_rbf(data, s0, s1, norm="angle")
          npt.assert_(np.mean(np.abs(interp_data_a - expected)) < 0.1)
  
      # Test that using the euclidean norm raises a warning
      # (following
      # https://docs.python.org/2/library/warnings.html#testing-warnings)
      with warnings.catch_warnings(record=True) as w:
          warnings.simplefilter("always")
          interp_rbf(data, s0, s1, norm="euclidean_norm")
          npt.assert_(len(w) == 1)
          npt.assert_(
              issubclass(w[-1].category, PendingDeprecationWarning)
          )
          npt.assert_("deprecated" in str(w[-1].message))
  
file_path: dipy/dipy/core/tests/test_interpolation.py
imports: import numpy
  import numpy.testing
  import warnings
  from scipy.ndimage import map_coordinates
  from dipy.core.subdivide_octahedron import create_unit_sphere
  from dipy.core.interpolation import trilinear_interpolate4d, interpolate_scalar_2d, interpolate_scalar_3d, interpolate_vector_2d, interpolate_vector_3d, interpolate_scalar_nn_2d, interpolate_scalar_nn_3d, NearestNeighborInterpolator, TriLinearInterpolator, OutsideImage, map_coordinates_trilinear_iso, interp_rbf
  from dipy.align import floating
  from dipy.testing.decorators import set_random_number_generator
label_desc: Use image node_id 11 for calling a global function with example usage: test_interp_rbf() and returns: unknown