docstr: Customize optimization process. The goal is to make the most robust(generalize) ad sticker on real inputs.
  As attack objective varies, the cost function can be tailered to it.
  
  Args:
  img_list: The adversary object.
  mask: The numpy array with shape equals to a sample.
  logo_mask: The numpy array mask for perturbed area.
  resized_logo_mask: The logo_mask that resized.
  **kwargs: Other named arguments.
docstr_tok: ["Customize","optimization","process",".","The","goal","is","to","make","the","most","robust","(","generalize",")","ad","sticker","on","real","inputs",".","As","attack","objective","varies",",","the","cost","function","can","be","tailered","to","it",".","Args",":","img_list",":","The","adversary","object",".","mask",":","The","numpy","array","with","shape","equals","to","a","sample",".","logo_mask",":","The","numpy","array","mask","for","perturbed","area",".","resized_logo_mask",":","The","logo_mask","that","resized",".","*","*","kwargs",":","Other","named","arguments","."]
code: def attack_optimize(
      self,
      img_list,
      mask,
      logo_mask=None,
      resized_logo_mask=None,
      **kwargs,
  ):
      """
      Customize optimization process. The goal is to make the most robust(generalize) ad sticker on real inputs.
      As attack objective varies, the cost function can be tailered to it.
  
      Args:
      img_list: The adversary object.
      mask: The numpy array with shape equals to a sample.
      logo_mask: The numpy array mask for perturbed area.
      resized_logo_mask: The logo_mask that resized.
      **kwargs: Other named arguments.
      """
      raise NotImplementedError
  
imports: from __future__ import division
  from __future__ import print_function
  from builtins import input
  from builtins import range
  from builtins import object
  from past.utils import old_div
  from abc import ABCMeta
  from abc import abstractmethod
  import numpy
  import cv2
  import os
  import xmltodict
  import pdb
  from future.utils import with_metaclass
label_desc: Use image node_id 5 for calling the ODD_logic obj's underlying member method code with example usage: obj.attack_optimize(img_list, mask, logo_mask, resized_logo_mask) without return types