code: def trainer_params(request):
      (
          x_train,
          y_train,
          dataset,
          loss_fn_kwargs,
          preprocess,
          verbose,
      ) = tests[request.param]
      return (
          x_train,
          y_train,
          dataset,
          loss_fn_kwargs,
          preprocess,
          verbose,
      )
  
file_path: alibi-detect/alibi_detect/models/tensorflow/tests/test_trainer_tf.py
imports: from functools import partial
  from itertools import product
  import numpy
  import pytest
  import tensorflow
  from tensorflow.keras.losses import categorical_crossentropy
  from alibi_detect.models.tensorflow.trainer import trainer
  from alibi_detect.utils.tensorflow.data import TFDataset
label_desc: Use image node_id 2 for calling a global function with example usage: trainer_params(request) and returns: x_train,  y_train,  dataset,  loss_fn_kwargs,  preprocess,  verbose