class_docstr: Test class for ContinuousMLPPolicy
class_docstr_tok: ["Test","class","for","ContinuousMLPPolicy"]
docstr: Test build method
docstr_tok: ["Test","build","method"]
code: def test_build(self, obs_dim, action_dim):
      """Test build method"""
      env = GymEnv(DummyBoxEnv(obs_dim=obs_dim, action_dim=action_dim))
      policy = ContinuousMLPPolicy(env_spec=env.spec)
  
      env.reset()
      obs = env.step(1).observation
  
      obs_dim = env.spec.observation_space.flat_dim
      state_input = tf.compat.v1.placeholder(
          tf.float32, shape=(None, obs_dim)
      )
      action_sym = policy.build(state_input, name="action_sym")
  
      action = self.sess.run(
          action_sym, feed_dict={state_input: [obs.flatten()]}
      )
      action = policy.action_space.unflatten(action)
  
      assert env.action_space.contains(action)
  
file_path: garage/tests/garage/tf/policies/test_continuous_mlp_policy.py
imports: import pickle
  from unittest import mock
  import numpy
  import pytest
  import tensorflow
  from garage.envs import GymEnv
  from garage.tf.policies import ContinuousMLPPolicy
  from tests.fixtures import TfGraphTestCase
  from tests.fixtures.envs.dummy import DummyBoxEnv, DummyDictEnv
label_desc: Use image node_id 2 for calling the TestContinuousMLPPolicy obj's underlying member method code with example usage: obj.test_build(obs_dim, action_dim) without return types