code: def add_optimizer(self, optimizer, duration=1, early_stopping=None):
      self.duration_sum += duration
      optimizer_setup = {
          "optimizer": optimizer,
          "duration": duration,
          "early_stopping": early_stopping,
      }
      self.optimizer_setup_l.append(optimizer_setup)
  
imports: from .optimization_strategy import BaseOptimizationStrategy
label_desc: Use image node_id 2 for calling the CustomOptimizationStrategy obj's underlying member method code with example usage: obj.add_optimizer(optimizer, duration, early_stopping) without return types