code: def _transpose_last_two_dims(sampling_points):
      axes = [i for i in range(len(sampling_points.shape))]
      axes[-1], axes[-2] = axes[-2], axes[-1]
      sampling_points = tf.transpose(a=sampling_points, perm=axes)
      return sampling_points
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import numpy
  from six.moves import range
  import tensorflow
  from tensorflow_graphics.geometry.representation import grid
  from tensorflow_graphics.geometry.transformation import rotation_matrix_3d
  from tensorflow_graphics.math.interpolation import trilinear
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 2 for calling a global function with example usage: _transpose_last_two_dims(sampling_points) and returns: sampling_points