docstr: Test that policy raises error if passed a dict obs space.
docstr_tok: ["Test","that","policy","raises","error","if","passed","a","dict","obs","space","."]
code: def test_does_not_support_dict_obs_space(
      self, filters, strides, padding, hidden_sizes
  ):
      """Test that policy raises error if passed a dict obs space."""
      env = GymEnv(DummyDictEnv(act_space_type="discrete"))
      with pytest.raises(ValueError):
          CategoricalCNNPolicy(
              env_spec=env.spec,
              filters=filters,
              strides=strides,
              padding=padding,
              hidden_sizes=hidden_sizes,
          )
  
file_path: garage/tests/garage/tf/policies/test_categorical_cnn_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 CategoricalCNNPolicy
  from tests.fixtures import TfGraphTestCase
  from tests.fixtures.envs.dummy import DummyDictEnv, DummyDiscretePixelEnv
label_desc: Use image node_id 5 for calling the TestCategoricalCNNPolicyWithModel obj's underlying member method code with example usage: obj.test_does_not_support_dict_obs_space(filters, strides, padding, hidden_sizes) without return types