code: def find_r_to_boundary_of_closedpath(
      inside_closedpath,
      xy,
      cos_t,
      sin_t,
      rmin=0.0,
      rmax=1.0,
      tolerence=0.01,
  ):
      """
      Find a radius r (centered at *xy*) between *rmin* and *rmax* at
      which it intersect with the path.
  
      inside_closedpath : function
      cx, cy : center
      cos_t, sin_t : cosine and sine for the angle
      rmin, rmax :
      """
  
      cx, cy = xy
  
      def _f(r):
          return cos_t * r + cx, sin_t * r + cy
  
      find_bezier_t_intersecting_with_closedpath(
          _f, inside_closedpath, t0=rmin, t1=rmax, tolerence=tolerence
      )
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import numpy
  from matplotlib.path import Path
  from operator import xor
  import warnings
label_desc: Use image node_id 7 for calling a global function with example usage: find_r_to_boundary_of_closedpath(inside_closedpath, xy, cos_t, sin_t, rmin, rmax, tolerence) and returns: unknown,  unknown