Device-independent certification of different structures of measurement incompatibility Code to accompany "Device-independent certification of different structures of measurement incompatibility" The script run1.m