code: def inserted_hs_indices(self, prune=False):
          
          if self.ndim == 2 and prune:
              # If pruning is applied, we need to subtract from the H&S indes
              # the number of pruned rows (cols) that come before that index.
              pruning_bases = [self._pruning_base(axis=i, hs_dims=[0, 1]) for i in [1, 0]]
              pruning_bases = [
                  base if base.ndim == 1 else np.sum(base, axis=(1 - i))
                  for i, base in enumerate(pruning_bases)
              ]
              # Obtain prune indices as subscripts
              prune_indices_list = [
                  np.arange(len(base))[np.logical_or(base == 0, np.isnan(base))]
                  for base in pruning_bases
              ]
              inserted_indices_list = [dim.inserted_hs_indices for dim in self.dimensions]
              return self._adjust_inserted_indices(
                  inserted_indices_list, prune_indices_list
              )
  
          return [dim.inserted_hs_indices for dim in self.dimensions]
docs: Get indices of the inserted H&S (for formatting purposes).