code: def recursive_agg(value, kernel_size, pool_len, causal=True):
      if indico_ops.BUILT:
          return indico_ops.recursive_agg_op(
              value, kernel_size, pool_len
          )
  
      full_pool_len = pool_len
      num_pooling_ops = int(
          math.ceil(math.log(full_pool_len, kernel_size))
      )
  
      intermediate_vals = []
      for i in range(num_pooling_ops):
          value = _dilated_causal_max_pool(
              value,
              kernel_size=kernel_size,
              dilation=kernel_size**i,
              padding="left" if causal else "even",
          )
          intermediate_vals.append(value)
  
      return tf.stack(intermediate_vals, 2)
  
file_path: finetune/finetune/custom_ops/indico_tf_ops/python/ra.py
imports: import os
  import math
  import tensorflow
  from finetune.custom_ops.indico_tf_ops.python import indico_ops
label_desc: Use image node_id 5 for calling a global function with example usage: recursive_agg(value, kernel_size, pool_len, causal) and returns: tf, indico_ops