code: def momentum_schedule_per_sample(momentum, epoch_size=None):
      """
      Create a per-sample momentum schedule (using the same semantics as
      :func:`momentum_schedule` but specializing in per sample momentum schedule).
  
      Args:
          momentum (float or list): see parameter ``schedule`` in
           :func:`training_parameter_schedule`.
          epoch_size (int): see parameter ``epoch_size`` in
           :func:`momentum_schedule`.
      Returns:
          momentum schedule
      """
      return momentum_schedule(
          momentum, minibatch_size=1, epoch_size=epoch_size
      )
  
imports: from enum import Enum, unique
  import warnings
  import numpy
  import cntk.internal.utils
  from ..None import cntk_py, NDArrayView, asarray
  from cntk.internal import typemap
  from ..internal.swig_helper import map_if_possible
label_desc: Use image node_id 11 for calling a global function with example usage: momentum_schedule_per_sample(momentum, epoch_size) and returns: momentum_schedule