code: def get_source_cw2wT(self, source_cameras_view_to_world):
      qs = []
      for c_idx in range(source_cameras_view_to_world.shape[0]):
          qs.append(
              matrix_to_quaternion(
                  source_cameras_view_to_world[c_idx, :3, :3].transpose(
                      0, 1
                  )
              )
          )
      return torch.stack(qs, dim=0)
  
file_path: splatter-image/scene/srn.py
imports: import glob
  import os
  import numpy
  import torch
  from torch.utils.data import Dataset
  from .dataset_readers import readCamerasFromTxt
  from utils.general_utils import PILtoTorch, matrix_to_quaternion
  from utils.graphics_utils import getWorld2View2, getProjectionMatrix, getView2World
label_desc: Use image node_id 6 for calling the SRNDataset obj's underlying member method code with example usage: obj.get_source_cw2wT(source_cameras_view_to_world) and returns: torch