code: def build_stripe_pairs(matrix, used_stripes):
      stripe_pairs = []
      total_stripes = int(matrix.shape[1] / 4)
  
      used_stripes = np.sort(used_stripes)
      for stripe0 in range(total_stripes - 1):
          for stripe1 in range(stripe0, total_stripes):
              if stripe0 in used_stripes or stripe1 in used_stripes:
                  stripe_pairs.append([stripe0, stripe1])
  
      return np.asarray(stripe_pairs)
  
file_path: apex/apex/contrib/sparsity/permutation_search_kernels/channel_swap.py
imports: from .permutation_utilities import *
label_desc: Use image node_id 4 for calling a global function with example usage: build_stripe_pairs(matrix, used_stripes) and returns: np