code: def test_transform():
      base_dist = torch.distributions.Normal(loc=2, scale=1)
      dist = torch.distributions.TransformedDistribution(
          base_dist, [torch.distributions.transforms.TanhTransform()]
      )
      mode = mode_of_distribution(dist)
      torch_assert_allclose(mode.tolist(), math.tanh(2))
  
file_path: pfrl/tests/utils_tests/test_mode_of_distribution.py
imports: import math
  import torch
  from pfrl.testing import torch_assert_allclose
  from pfrl.utils.mode_of_distribution import mode_of_distribution
label_desc: Use image node_id 1 for calling a global function with example usage: test_transform() without return types