docstr: Test PPO with maxium entropy method.
docstr_tok: ["Test","PPO","with","maxium","entropy","method","."]
code: def test_ppo_with_maximum_entropy(self):
      """Test PPO with maxium entropy method."""
      with TFTrainer(snapshot_config, sess=self.sess) as trainer:
          algo = PPO(
              env_spec=self.env.spec,
              policy=self.policy,
              baseline=self.baseline,
              sampler=self.sampler,
              discount=0.99,
              lr_clip_range=0.01,
              optimizer_args=dict(
                  batch_size=32, max_optimization_epochs=10
              ),
              stop_entropy_gradient=True,
              entropy_method="max",
              policy_ent_coeff=0.02,
              center_adv=False,
          )
          trainer.setup(algo, self.env)
          last_avg_ret = trainer.train(n_epochs=10, batch_size=2048)
          assert last_avg_ret > 35
  
imports: import gym
  import pytest
  import tensorflow
  from garage.envs import GymEnv, normalize
  from garage.np.baselines import LinearFeatureBaseline
  from garage.sampler import LocalSampler
  from garage.tf.algos import PPO
  from garage.tf.baselines import ContinuousMLPBaseline, GaussianMLPBaseline
  from garage.tf.policies import CategoricalMLPPolicy, GaussianGRUPolicy, GaussianLSTMPolicy, GaussianMLPPolicy
  from garage.trainer import TFTrainer
  from tests.fixtures import snapshot_config, TfGraphTestCase
  from tests.fixtures.envs.wrappers import ReshapeObservation
label_desc: Use image node_id 3 for calling the TestPPO obj's underlying member method code with example usage: obj.test_ppo_with_maximum_entropy() without return types