class_docstr: A basic Point class.
class_docstr_tok: ["A","basic","Point","class","."]
docstr: Bound this point within the rect defined by (`p1`, `p2`).
docstr_tok: ["Bound","this","point","within","the","rect","defined","by","(","`","p1","`",",","`","p2","`",")","."]
code: def bound(self, p1, p2=None):
      """Bound this point within the rect defined by (`p1`, `p2`)."""
      r = Rect(p1, p2)
      return Point(
          min(max(self.x, r.l), r.r), min(max(self.y, r.t), r.b)
      )
  
imports: import collections
  import math
  import random
label_desc: Use image node_id 21 for calling the Point obj's underlying member method code with example usage: obj.bound(p1, p2) and returns: Point