code: def has_same_bins(self, other: "HistogramBase") -> bool:
          
          if self.shape != other.shape:
              return False
          elif self.ndim == 1:
              return np.allclose(self.bins, other.bins)
          elif self.ndim > 1:
              for i in range(self.ndim):
                  if not np.allclose(self.bins[i], other.bins[i]):
                      return False
              return True
docs: Whether two histograms share the same binning.