code: def partitions_get_data_label(
      partition_list, allow_tuple=True, allow_list=True, has_label=True
  ):
      """
      Get data and label for multiple partitions.
      """
      partition_data = [
          item for partition in partition_list for item in partition
      ]
      data, label = partition_get_data_label(
          partition_data,
          allow_tuple=allow_tuple,
          allow_list=allow_list,
          has_label=has_label,
      )
      return data, label
  
imports: from bigdl.dllib.utils.file_utils import get_file_list, callZooFunc
  from bigdl.dllib.utils.utils import convert_row_to_numpy
  from bigdl.dllib.utils.common import *
  from bigdl.dllib.utils.log4Error import *
  import pyspark.sql.functions
  from typing import TYPE_CHECKING, Dict, List, Optional, Type, Union
  from numpy import float32, int32
label_desc: Use image node_id 8 for calling a global function with example usage: partitions_get_data_label(partition_list, allow_tuple, allow_list, has_label) and returns: data,  label