code: def test_momentum_schedule_per_sample(params, expectation):
      l = C.momentum_schedule(*params)
      assert [l[i] for i in range(len(expectation))] == expectation
  
imports: from __future__ import division, print_function
  import numpy
  import cntk
  from cntk import parameter
  import pytest
  import sys
  import itertools
  from cntk.logging import ProgressPrinter
  from cntk.learners import sgd, learning_rate_schedule, learning_parameter_schedule, UnitType, universal
  from cntk.layers import Dense, Sequential
label_desc: Use image node_id 5 for calling a global function with example usage: test_momentum_schedule_per_sample(params, expectation) without return types