code: def encode_label(label_data):
      
      systole = label_data[:, 1]
      diastole = label_data[:, 2]
      systole_encode = np.array([
              (x < np.arange(600)) for x in systole
          ], dtype=np.uint8)
      diastole_encode = np.array([
              (x < np.arange(600)) for x in diastole
          ], dtype=np.uint8)
      return systole_encode, diastole_encode
docs: Run encoding to encode the label into the CDF target.