code: def is_inside(point, region):
      
      points = region.vertices
      extrame = models.Point(x=1000000, y=point.y)
  
      points = points + [points[0]]
      intersect_count = 0
      for i in range(len(points) - 1):
          if is_intersect(models.Line(point, extrame),
                          models.Line(points[i], points[i+1])):
              intersect_count += 1
      return intersect_count % 2 == 1
docs: Detemine if point is in region
  
      :param point:
      :type point: models.Point
      :param region:
      :type region: Region