def path_encloses_pt(pt, opt, path):
assert path.isclosed()<EOL>intersections = Path(Line(pt, opt)).intersect(path)<EOL>if len(intersections) % <NUM_LIT:2>:<EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT>
returns true if pt is a point enclosed by path (which must be a Path
    object satisfying path.isclosed==True).  opt is a point you know is
    NOT enclosed by path.