code: def split_bezier_intersecting_with_closedpath(
      bezier, inside_closedpath, tolerence=0.01
  ):
      """
      bezier : control points of the bezier segment
      inside_closedpath : a function which returns true if the point is inside
                          the path
      """
  
      bz = BezierSegment(bezier)
      bezier_point_at_t = bz.point_at_t
  
      t0, t1 = find_bezier_t_intersecting_with_closedpath(
          bezier_point_at_t, inside_closedpath, tolerence=tolerence
      )
  
      _left, _right = split_de_casteljau(bezier, (t0 + t1) / 2.0)
      return _left, _right
  
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 6 for calling a global function with example usage: split_bezier_intersecting_with_closedpath(bezier, inside_closedpath, tolerence) and returns: _left,  _right