code: def contains_pts(self, pts):
          
          obj1, obj2 = self.objects
          arg1 = obj2.contains_pts(pts)
          arg2 = np.logical_not(obj1.contains_pts(pts))
          return np.logical_and(arg1, arg2)
docs: Containment test on arrays.