code: def _load_calibration_matrices(inpath):
      with open(inpath, "r") as f:
          lines = [l.strip() for l in f.readlines()]
          lines = [l for l in lines if l]
  
      calib = {}
      for l in lines:
          key, vals = l.split(":", 1)
          vals = [float(v) for v in vals.split()]
  
          if key.startswith("R"):
              m = np.reshape(vals, (3, 3))
          elif key.startswith("P"):
              m = np.reshape(vals, (3, 4))
          elif key.startswith("T"):
              m = np.reshape(vals, (3, 4))
  
          calib[key] = m
  
      return calib
  
imports: import csv
  import logging
  import struct
  import os
  import numpy
  import eta.core.utils
  import eta.core.web
  import fiftyone
  import fiftyone.core.labels
  import fiftyone.core.metadata
  import fiftyone.core.storage
  import fiftyone.core.utils
  import fiftyone.utils.data
label_desc: Use image node_id 11 for calling a global function with example usage: _load_calibration_matrices(inpath) and returns: calib