code: def save_pseudo_label_masks(submission_file):
      df = pd.read_csv(submission_file, na_filter=False)
      print(df.head())
  
      img_dir = os.path.join(settings.TEST_DIR, "masks")
  
      for i, row in enumerate(df.values):
          decoded_mask = run_length_decoding(row[1], (101, 101))
          filename = os.path.join(img_dir, "{}.png".format(row[0]))
          rgb_mask = cv2.cvtColor(decoded_mask, cv2.COLOR_GRAY2RGB)
          print(filename)
          cv2.imwrite(filename, decoded_mask)
          if i % 100 == 0:
              print(i)
  
file_path: nni/examples/trials/kaggle-tgs-salt/postprocessing.py
imports: import os
  import numpy
  import pandas
  from scipy import ndimage
  import cv2
  from utils import get_crop_pad_sequence, run_length_decoding
  import settings
label_desc: Use image node_id 4 for calling a global function with example usage: save_pseudo_label_masks(submission_file) without return types