def set_optimizer(self, optimizer: ClassyOptimizer):
    'Set optimizer for task\n\n        Args:\n            optimizer: optimizer for task\n        '
    self.optimizer = optimizer
    return self
Set optimizer for task

Args:
    optimizer: optimizer for task
def set_optimizer(self, optimizer: ClassyOptimizer):
    'Set optimizer for task\n\n        Args:\n            optimizer: optimizer for task\n        '
    self.optimizer = optimizer
    return self