code: def test_op_reshape_parameter():
      from .. import reshape, parameter
  
      param_shape = (4, 2)
      param_value = np.random.random(param_shape)
      param = parameter(init=param_value)
      param_new_shape = (8, 1)
      param_reshaped = reshape(param, param_new_shape)
  
      expected_forward = np.copy(param_value).reshape(param_new_shape)
      state, result = param_reshaped.forward(
          {}, [param_reshaped.output], [param_reshaped.output]
      )
      assert np.allclose(
          result[param_reshaped.output], expected_forward
      )
  
      grad = param_reshaped.backward(
          state, np.ones(param_new_shape), [param]
      )
      assert np.allclose(grad[param], np.ones(param_shape))
  
imports: from __future__ import division
  import numpy
  import cntk
  import pytest
  from .ops_test_utils import unittest_helper, _test_unary_op, _test_binary_op, AA, precision, PRECISION_TO_TYPE, cntk_device
  import cntk
  from cntk import Value
  from cntk.axis import Axis
  from cntk.internal import sanitize_dtype_cntk
  from ..None import constant
label_desc: Use image node_id 4 for calling a global function with example usage: test_op_reshape_parameter() without return types