code: def test_map_invariance_to_transform() -> None:
      m1 = DummyModel(with_transform=True)
      m2 = DummyModel(with_transform=False)
      assert np.allclose(
          m1.log_posterior_density().numpy(),
          m2.log_posterior_density().numpy(),
      ), "log posterior density should not be affected by a transform"
  
imports: from typing import Any, Tuple, Type
  import numpy
  import pytest
  import tensorflow
  import tensorflow_probability
  from tensorflow_probability.python.bijectors import Exp
  from tensorflow_probability.python.distributions import Uniform
  import gpflow
  from gpflow.base import AnyNDArray, PriorOn
  from gpflow.config import set_default_float
  from gpflow.utilities import to_default_float
label_desc: Use image node_id 5 for calling a global function with example usage: test_map_invariance_to_transform() without return types