def METHOD_NAME(self, net_ctor):
    obs_spec = TensorSpec((20, ))
    action_spec = BoundedTensorSpec((), dtype='int64')
    # doesn't support discrete action spec ...
    self.assertRaises(AssertionError, net_ctor, (obs_spec, action_spec))
    # ... unless an preprocessor is specified
    net_ctor((obs_spec, action_spec),
             action_input_processors=EmbeddingPreprocessor(
                 action_spec, embedding_dim=10))