code: def _compute_pairwise_comparisons_for_steps(input_tensor, dim, steps):
      """
      Helper function that does pairwise comparisons by splitting input
      tensor for `steps` number of steps along dimension `dim`.
      """
      enc_tensor_reduced = input_tensor.clone()
      for _ in range(steps):
          m = enc_tensor_reduced.size(dim)
          x, y, remainder = enc_tensor_reduced.split(
              [m // 2, m // 2, m % 2], dim=dim
          )
          pairwise_max = crypten.where(x >= y, x, y)
          enc_tensor_reduced = crypten.cat(
              [pairwise_max, remainder], dim=dim
          )
      return enc_tensor_reduced
  
file_path: CrypTen/crypten/common/functions/maximum.py
imports: import math
  import crypten
  import torch
  from crypten.config import cfg
label_desc: Use image node_id 6 for calling a global function with example usage: _compute_pairwise_comparisons_for_steps(input_tensor, dim, steps) and returns: enc_tensor_reduced