code: def test_transform_op_cache(dist):
      t = dist.transforms.PowerTransform(0.5)
      W = ops.WrappedTransformOp
      assert W(fn=t) is W(fn=t)
      assert W(fn=t).inv is W(fn=t).inv
      assert W(fn=t.inv) is W(fn=t).inv
      assert (
          W(fn=t).log_abs_det_jacobian is W(fn=t).log_abs_det_jacobian
      )
  
file_path: funsor/test/test_ops.py
imports: import weakref
  import pytest
  from funsor import ops
  from funsor.distribution import BACKEND_TO_DISTRIBUTIONS_BACKEND
  from funsor.ops.builtin import parse_ellipsis, parse_slice
  from funsor.testing import desugar_getitem
  from funsor.util import get_backend
label_desc: Use image node_id 2 for calling a global function with example usage: test_transform_op_cache(dist) without return types