code: def select_detector(request):
      return detector[request.param]
  
file_path: alibi-detect/alibi_detect/utils/tests/test_saving_legacy.py
imports: from alibi_detect.utils.missing_optional_dependency import MissingDependency
  from functools import partial
  import numpy
  import pytest
  from sklearn.model_selection import StratifiedKFold
  from tempfile import TemporaryDirectory
  import tensorflow
  from tensorflow.keras.layers import Dense, InputLayer
  from typing import Callable
  from alibi_detect.ad import AdversarialAE, ModelDistillation
  from alibi_detect.cd import ChiSquareDrift, ClassifierDrift, KSDrift, MMDDrift, TabularDrift
  from alibi_detect.cd.tensorflow import UAE, preprocess_drift
  from alibi_detect.models.tensorflow.autoencoder import DecoderLSTM, EncoderLSTM
  from alibi_detect.od import IForest, LLR, Mahalanobis, OutlierAEGMM, OutlierVAE, OutlierVAEGMM, OutlierProphet, SpectralResidual, OutlierSeq2Seq, OutlierAE
  from alibi_detect.saving import save_detector, load_detector
label_desc: Use image node_id 1 for calling a global function with example usage: select_detector(request) and returns: detector