code: def intersperse_hs_in_std_res(slice_, hs_dims, res):
      
      for dim, inds in enumerate(slice_.inserted_hs_indices()):
          if dim not in hs_dims:
              continue
          for i in inds:
              res = np.insert(res, i, np.nan, axis=(dim - slice_.ndim))
      return res
docs: Perform the insertions of place-holding rows and cols for insertions.