code: def test_clone_with_slice():
      i1 = C.input_variable((2, 2), name="i1")
      i2 = C.input_variable((2, 2), name="i2")
      x = C.splice(i1, i2, axis=0)
      W = C.constant(1, (4, 1), name="W")
      y = C.convolution(W, x)
      assert y.shape == (4, 2)
  
      from ..functions import CloneMethod
  
      x1 = C.input_variable((2, 1), name="x1")
      x2 = C.input_variable((2, 1), name="x2")
      p1 = C.placeholder()
      p2 = C.placeholder()
      y_cloned = y.clone("clone", {i1: p1, i2: p2})
      y2 = y_cloned(x1, x2)
      assert y2.shape == (4, 1)
  
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 15 for calling a global function with example usage: test_clone_with_slice() without return types