class_docstr: Tests for the tanh normal distribution.
docstr: Test to make sure the tanh_normal dist obeys the bounds (-1,1).
docstr_tok: ["Test","to","make","sure","the","tanh_normal","dist","obeys","the","bounds","(","-1,1",")","."]
code: def test_tanh_normal_bounds(self):
      """Test to make sure the tanh_normal dist obeys the bounds (-1,1)."""
      mean = torch.ones(1) * 100
      std = torch.ones(1) * 100
      dist = TanhNormal(mean, std)
      assert dist.mean <= 1.0
      del dist
      mean = torch.ones(1) * -100
      std = torch.ones(1) * 100
      dist = TanhNormal(mean, std)
      assert dist.mean >= -1.0
  
file_path: garage/tests/garage/torch/distributions/test_tanh_normal_dist.py
imports: import torch
  from garage.torch.distributions import TanhNormal
label_desc: Use image node_id 2 for calling the TestBenchmarkTanhNormalDistribution obj's underlying member method code with example usage: obj.test_tanh_normal_bounds() without return types