def is_inside(point, region):
points = region.vertices<EOL>extrame = models.Point(x=<NUM_LIT>, y=point.y)<EOL>points = points + [points[<NUM_LIT:0>]]<EOL>intersect_count = <NUM_LIT:0><EOL>for i in range(len(points) - <NUM_LIT:1>):<EOL><INDENT>if is_intersect(models.Line(point, extrame),<EOL>models.Line(points[i], points[i+<NUM_LIT:1>])):<EOL><INDENT>intersect_count += <NUM_LIT:1><EOL><DEDENT><DEDENT>return intersect_count % <NUM_LIT:2> == <NUM_LIT:1><EOL>
Detemine if point is in region

:param point:
:type point: models.Point
:param region:
:type region: Region