code: def get_segmentations(labeled):
      nr_true = labeled.max()
      segmentations = []
      for i in range(1, nr_true + 1):
          msk = labeled == i
          segmentation = rle_from_binary(msk.astype("uint8"))
          segmentation["counts"] = segmentation["counts"].decode(
              "UTF-8"
          )
          segmentations.append(segmentation)
      return segmentations
  
imports: import os
  import json
  import sys
  import time
  import numpy
  import pandas
  from PIL import Image
  from tqdm import tqdm
  from pycocotools import mask
  from sklearn.model_selection import KFold
  import settings
label_desc: Use image node_id 10 for calling a global function with example usage: get_segmentations(labeled) and returns: segmentations