class_docstr: Transformation controller which applies multi transformations
  to each data sample.
class_docstr_tok: ["Transformation","controller","which","applies","multi","transformations","to","each","data","sample","."]
docstr: Get the objects of attack methods.
  
  :param str attack_methods: path to the python file containing
      the Attack instances.
  :param model: the model to be attacked
  :return: list of objects of attacks.
docstr_tok: ["Get","the","objects","of","attack","methods",".",":","param","str","attack_methods",":","path","to","the","python","file","containing","the","Attack","instances",".",":","param","model",":","the","model","to","be","attacked",":","return",":","list","of","objects","of","attacks","."]
code: def _get_attack_objs(self, attack_methods, model):
      """
      Get the objects of attack methods.
  
      :param str attack_methods: path to the python file containing
          the Attack instances.
      :param model: the model to be attacked
      :return: list of objects of attacks.
      """
      if attack_methods:
          attacks = load_module_from_file("attacks", attack_methods)
          for attack in attacks:
              attack.init_goal_function(model)
      else:
          attacks = []
      return attacks
  
imports: from tqdm import tqdm
  from abc import ABC
  from itertools import product
  from ...input.dataset import Dataset
  from ...common.utils.seed import set_seed
  from ...common.utils.logger import logger
  from ...common.preprocess import EnProcessor
  from ...common.utils.load import pkg_class_load, load_module_from_file
  from ..transformation import Transformation, Pipeline
  from ..subpopulation import SubPopulation
  from ...common.settings import TASK_TRANSFORMATION_PATH, ALLOWED_TRANSFORMATIONS, TASK_SUBPOPULATION_PATH, ALLOWED_SUBPOPULATIONS
label_desc: Use image node_id 7 for calling the Generator obj's underlying member method code with example usage: obj._get_attack_objs(attack_methods, model) and returns: attacks