class_docstr: Unit tests for policy gradient.
class_docstr_tok: ["Unit","tests","for","policy","gradient","."]
code: def _setup_test_model(self, *args, **kwargs):
      inputs = placeholder(shape=(1,))
      outputs = input_variable(shape=(1,), dtype=np.float32)
  
      q = Dense(1, activation=None)(inputs)
      loss = cross_entropy_with_softmax(q, outputs)
  
      return {
          "inputs": inputs,
          "outputs": outputs,
          "f": q,
          "loss": loss,
      }
  
imports: import unittest
  import cntk.contrib.deeprl.tests.spaces
  import numpy
  from cntk.contrib.deeprl.agent.policy_gradient import ActorCritic
  from cntk.layers import Dense
  from cntk.losses import cross_entropy_with_softmax
  from cntk.ops import input_variable, placeholder
label_desc: Use image node_id 15 for calling the PolicyGradientTest obj's underlying member method code with example usage: obj._setup_test_model() and returns: dict