docs: def _merge_alocs(self, other_region):
          """
          Helper function for merging.
          """
          merging_occurred = False
          for aloc_id, aloc in other_region.alocs.items():
              if aloc_id not in self.alocs:
                  self.alocs[aloc_id] = aloc.copy()
                  merging_occurred = True
              else:
                  # Update it
                  merging_occurred |= self.alocs[aloc_id].merge(aloc)
          return merging_occurred