code: def rle_from_binary(prediction):
      prediction = np.asfortranarray(prediction)
      return cocomask.encode(prediction)
  
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 8 for calling a global function with example usage: rle_from_binary(prediction) and returns: cocomask