code: def get_data_from_part_refs(part_refs):
      from bigdl.orca.data.utils import partitions_get_data_label
  
      partitions = [ray.get(part_ref) for part_ref in part_refs]
  
      data, label = partitions_get_data_label(
          partitions,
          allow_tuple=True,
          allow_list=False,
      )
      return data, label
  
imports: import ray
  from ray import tune
  import os
  from bigdl.orca.automl.search.base import SearchEngine, TrialOutput, GoodError
  from bigdl.orca.automl.search.parameters import DEFAULT_LOGGER_NAME, DEFAULT_METRIC_NAME
  from bigdl.orca.automl.search.ray_tune.utils import convert_bayes_configs
  from bigdl.orca.automl.search.utils import get_ckpt_hdfs, put_ckpt_hdfs
  from ray.tune import Stopper
  from bigdl.orca.automl.model.abstract import ModelBuilder
  from bigdl.orca.data import ray_xshards
  from ray.tune.progress_reporter import TrialProgressCallback
  from bigdl.dllib.utils.log4Error import *
label_desc: Use image node_id 2 for calling a global function with example usage: get_data_from_part_refs(part_refs) and returns: data,  label