code: def list_to_tuple(maybe_list):
      """Datasets will stack any list of tensors, so we convert them to tuples."""
      if isinstance(maybe_list, list):
          return tuple(maybe_list)
      return maybe_list
  
file_path: keras/keras/trainers/data_adapters/data_adapter_utils.py
imports: import math
  import numpy
  import tree
  from keras import backend
  from keras.api_export import keras_export
label_desc: Use image node_id 3 for calling a global function with example usage: list_to_tuple(maybe_list) and returns: maybe_list, tuple