Added get_intrinsics_from_tuple function