code: def test_clone_with_deep_rnn_chaining():
      def seq_op_func(seqinp):
          l = seqinp
          r = C.sequence.future_value(l)
          r = C.expand_dims(r, -len(seqinp.shape) - 1)
          res = l + r
          return res
  
      def rnn_seq(features):
          step_func = C.layers.GRU(1)
          seq = C.layers.Recurrence(step_func)(features)
          return seq
  
      feat = C.sequence.input_variable((40,), name="sequence_inp")
      c1 = rnn_seq(feat)
      seq_op_res = seq_op_func(c1)
      net = rnn_seq(seq_op_res)
      cloned = net.clone("freeze")
  
imports: import numpy
  import os
  import pytest
  import cntk
  from .ops_test_utils import compare_lists_of_np_arrays, AA, cntk_device
  from cntk.io import MinibatchSource, CTFDeserializer, StreamDefs, StreamDef
label_desc: Use image node_id 31 for calling a global function with example usage: test_clone_with_deep_rnn_chaining() and returns: res, seq