docs: def pt2leaf(self, x):
          """
          Get the leaf which domain contains x.
          
          """
          if self.leafnode:
              return self
          else:
              if x[self.split_dim] < self.split_value:
                  return self.lower.pt2leaf(x)
              else:
                  return self.greater.pt2leaf(x)