class_docstr: Unit tests for QLearning.
class_docstr_tok: ["Unit","tests","for","QLearning","."]
code: def _setup_replay_memory(self, replay_memory):
      replay_memory.sample_minibatch.side_effect = [
          [
              (
                  0,
                  _Transition(
                      np.array([0.1], np.float32),
                      0,
                      10,
                      np.array([0.2], np.float32),
                      0.01,
                  ),
              )
          ],
          [
              (
                  1,
                  _Transition(
                      np.array([0.3], np.float32),
                      1,
                      -10,
                      np.array([0.4], np.float32),
                      0.02,
                  ),
              )
          ],
      ]
  
imports: import unittest
  import cntk.contrib.deeprl.tests.spaces
  import numpy
  from cntk.contrib.deeprl.agent.qlearning import QLearning
  from cntk.contrib.deeprl.agent.shared.cntk_utils import huber_loss
  from cntk.contrib.deeprl.agent.shared.replay_memory import _Transition
  from cntk.layers import Dense
  from cntk.losses import squared_error
  from cntk.ops import input_variable
label_desc: Use image node_id 15 for calling the QLearningTest obj's underlying member method code with example usage: obj._setup_replay_memory(replay_memory) without return types