code: def merge_bio_format(data, preds):
      """Merge predictions with BIO format during prediction."""
      results = []
      for sent, pred in zip(data, preds):
          results.append(
              [
                  {
                      "entity_group": value[-1],
                      "start": key,
                      "end": value[0],
                  }
                  for key, value in merge_spans(sent, pred).items()
              ]
          )
      return results
  
file_path: autogluon/multimodal/src/autogluon/multimodal/utils/misc.py
imports: import json
  import logging
  import os
  import re
  import numpy
  import pandas
  import torch
  from scipy.special import expit, softmax
label_desc: Use image node_id 8 for calling a global function with example usage: merge_bio_format(data, preds) and returns: results