code: def general_no_backprop_sgd_test(
      no_backprop_ops_in_lambdas, input_data, precision
  ):
      no_backprop_ops = no_backprop_ops_in_lambdas
      dt = PRECISION_TO_TYPE[precision]
      data = AA(input_data, dtype=dt)
  
      x = C.input_variable(
          shape=data.shape,
          dtype=sanitize_dtype_cntk(dt),
          needs_gradient=True,
          name="a",
      )
      w = C.parameter(x.shape, init=np.ones(x.shape).astype(dt) * 3.0)
      # create batch
      data.shape = (1,) + data.shape
  
      # numpy argmax doesn't support keepdims
      for op in no_backprop_ops:
          _no_backprop_sgd_test(op, x, w, dt, data, one_step_sgd)
  
file_path: CNTK/bindings/python/cntk/ops/tests/stop_gradient_test.py
imports: import numpy
  import cntk
  from .ops_test_utils import AA, PRECISION_TO_TYPE, precision
  from cntk.internal import sanitize_dtype_cntk
  import pytest
  from .non_diff_test import Matrices
label_desc: Use image node_id 6 for calling a global function with example usage: general_no_backprop_sgd_test(no_backprop_ops_in_lambdas, input_data, precision) without return types