code: def test_q_vals(self, hidden_sizes):
      env = GymEnv(DummyBoxEnv())
      obs_dim = env.spec.observation_space.flat_dim
      act_dim = env.spec.action_space.flat_dim
      qf = ContinuousMLPQFunction(
          env_spec=env.spec,
          action_merge_layer=0,
          hidden_sizes=hidden_sizes,
          hidden_nonlinearity=None,
          hidden_w_init=tf.ones_initializer(),
          output_w_init=tf.ones_initializer(),
      )
      obs = np.full(obs_dim, 1).flatten()
      act = np.full(act_dim, 1).flatten()
  
      expected_output = np.full(
          (1,), (obs_dim + act_dim) * np.prod(hidden_sizes)
      )
      outputs = qf.get_qval([obs], [act])
      assert np.array_equal(outputs[0], expected_output)
  
      outputs = qf.get_qval([obs, obs, obs], [act, act, act])
      for output in outputs:
          assert np.array_equal(output, expected_output)
  
file_path: garage/tests/garage/tf/q_functions/test_continuous_mlp_q_function.py
imports: import pickle
  import numpy
  import pytest
  import tensorflow
  from garage.envs import GymEnv
  from garage.tf.q_functions import ContinuousMLPQFunction
  from tests.fixtures import TfGraphTestCase
  from tests.fixtures.envs.dummy import DummyBoxEnv
label_desc: Use image node_id 1 for calling the TestContinuousMLPQFunction obj's underlying member method code with example usage: obj.test_q_vals(hidden_sizes) without return types