code: def get_adv_trainer(framework, image_dl_estimator):
      def _get_adv_trainer():
          if framework == "keras":
              trainer = None
          if framework in ["tensorflow", "tensorflow2v1"]:
              trainer = None
          if framework in ["pytorch", "huggingface"]:
              classifier, _ = image_dl_estimator()
              trainer = AdversarialTrainerFBFPyTorch(
                  classifier, eps=0.05
              )
          if framework == "scikitlearn":
              trainer = None
  
          return trainer
  
      return _get_adv_trainer
  
file_path: adversarial-robustness-toolbox/tests/defences/trainer/test_adversarial_trainer_FBF.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import pytest
  import logging
  import numpy
  from art.defences.trainer import AdversarialTrainerFBFPyTorch
label_desc: Use image node_id 1 for calling a global function with example usage: get_adv_trainer(framework, image_dl_estimator) and returns: _get_adv_trainer, trainer