code: def apply_transform(
          t: Union[List[List[float]], np.ndarray],
          pos: Tuple[float, float, float],
          with_offsets=True) -> Tuple[float, float, float]:
      
      extended = 1 if with_offsets else 0
      return tuple(dot(t, list(pos) + [extended])[:3])
docs: Change of base using a transform matrix. Primarily used to render a point
      in space in a way that is more readable for the user.
  
      :param t: A transformation matrix from one 3D space [A] to another [B]
      :param pos: XYZ point in space A
      :param with_offsets: Whether to apply the transform as an affine transform
                           or as a standard transform. You might use
                           with_offsets=False
      :return: corresponding XYZ point in space B