code: def clip_point_to_disc(points, radius, inplace=False):
      if not inplace:
          points = points.copy()
  
      r = np.linalg.norm(points, axis=1)
      phi = np.arctan2(points[:, 0], points[:, 1])
      mask = r > radius
      np.clip(r, 0, radius, out=r)
      points[:, 0] = r * np.sin(phi)
      points[:, 1] = r * np.cos(phi)
  
      return points, mask
  
file_path: openTSNE/openTSNE/utils.py
imports: from functools import wraps
  from time import time
  import warnings
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: clip_point_to_disc(points, radius, inplace) and returns: points,  mask