code: def configure_optimizers(self):
      lr = self.lr
      b1 = self.b1
      b2 = self.b2
  
      opt_g = torch.optim.Adam(
          self.generator.parameters(),
          lr=lr,
          betas=(b1, b2),
          weight_decay=0.00001,
      )
      opts = [opt_g]
      if self.use_adversarial:
          opt_d = torch.optim.Adam(
              self.discriminator.parameters(),
              lr=lr,
              betas=(b1, b2),
              weight_decay=0.00001,
          )
          opts.append(opt_d)
  
      return opts
  
file_path: BigDL/python/nano/client-application/VideoStylization/litmodels.py
imports: from typing import OrderedDict
  import torch
  import torch.nn
  import torch.nn.functional
  import pytorch_lightning
  from feature_model import FeaturesNet
  from original_models import Discriminator, Generator
label_desc: Use image node_id 5 for calling the LitModel obj's underlying member method code with example usage: obj.configure_optimizers() and returns: opts