code: def dump_xyz(source_to_target_transformations):
      xyzs = []
      cam_to_world = np.eye(4)
      xyzs.append(cam_to_world[:3, 3])
      for (
          source_to_target_transformation
      ) in source_to_target_transformations:
          cam_to_world = np.dot(
              cam_to_world, source_to_target_transformation
          )
          xyzs.append(cam_to_world[:3, 3])
      return xyzs
  
file_path: gluon-cv/scripts/depth/test_pose.py
imports: from __future__ import absolute_import, division, print_function
  import os
  from tqdm import tqdm
  import numpy
  import mxnet
  from mxnet import gluon
  from gluoncv.data import KITTIOdomDataset
  from gluoncv.data.kitti.kitti_utils import dict_batchify_fn, readlines
  from gluoncv.model_zoo import get_model
  from gluoncv.model_zoo.monodepthv2 import *
  from gluoncv.model_zoo.monodepthv2.layers import transformation_from_parameters
  from options import MonodepthOptions
label_desc: Use image node_id 1 for calling a global function with example usage: dump_xyz(source_to_target_transformations) and returns: xyzs