code: def _create_accumulators(nested_tensor, size):
      if isinstance(nested_tensor, tf.Tensor):
          # Single tensor.
          return tf.TensorArray(
              dtype=nested_tensor.dtype,
              size=size,
              element_shape=tff_utils.get_shape(nested_tensor),
              clear_after_read=False,
          )
      return [_create_accumulators(t, size) for t in nested_tensor]
  
file_path: tf-quant-finance/tf_quant_finance/math/custom_loops.py
imports: import tensorflow.compat.v2
  from tf_quant_finance import utils
label_desc: Use image node_id 11 for calling a global function with example usage: _create_accumulators(nested_tensor, size) and returns: unknown, tf