code: def project_to_sphere(points, center, radius):
      """
      Projects the elements of points onto the sphere defined
      by center and radius.
  
      Parameters
      ----------
      points : array of floats of shape (npoints, ndim)
               consisting of the points in a space of dimension ndim
      center : array of floats of shape (ndim,)
              the center of the sphere to project on
      radius : float
              the radius of the sphere to project on
  
      returns: array of floats of shape (npoints, ndim)
              the points projected onto the sphere
      """
  
      lengths = scipy.spatial.distance.cdist(points, np.array([center]))
      return (points - center) / lengths * radius + center
  
file_path: catboost/contrib/python/scipy/py2/scipy/spatial/_spherical_voronoi.py
imports: import numpy
  import scipy
  import itertools
  from .None import _voronoi
  from scipy.spatial.distance import pdist
label_desc: Use image node_id 3 for calling a global function with example usage: project_to_sphere(points, center, radius) and returns: unknown