code: def test_rollaxis_idempotent(rolls: int) -> None:
      A = np.random.randn(10, 5, 3, 20, 1)
      A_tf = tf.convert_to_tensor(A)
      A_left_right = rollaxis_left(rollaxis_right(A_tf, 2), 2)
      A_right_left = rollaxis_right(rollaxis_left(A_tf, 2), 2)
  
      assert_allclose(A, A_left_right)
      assert_allclose(A, A_right_left)
  
file_path: GPflow/tests/gpflow/conditionals/test_util.py
imports: from typing import Optional, Tuple
  import numpy
  import pytest
  import tensorflow
  from _pytest.logging import LogCaptureFixture
  from numpy.testing import assert_allclose, assert_equal
  from gpflow import default_float
  from gpflow.conditionals.util import rollaxis_left, rollaxis_right, sample_mvn
  from gpflow.utilities.ops import leading_transpose
label_desc: Use image node_id 5 for calling a global function with example usage: test_rollaxis_idempotent(rolls) without return types