code: def _df_split_apply(tup_arg):
      split_ind, subset, func = tup_arg
      r = subset.apply(func, axis=1)
      return (split_ind, r)
  
imports: import glob
  from pathlib import Path
  import time
  from omegaconf import OmegaConf
  import pandas
  import numpy
  import requests
  import zlib
  import os
  import io
  import shelve
  from lavis.common.utils import get_abs_path, get_cache_path
  import magic
  import json
  from multiprocessing import Pool
  from tqdm import tqdm
  from PIL import Image
  from torchvision.transforms import functional
label_desc: Use image node_id 1 for calling a global function with example usage: _df_split_apply(tup_arg) and returns: split_ind,  r