code: def configure_optimizers(self):
      optim = torch.optim.Adam(self.parameters(), lr=1e-4)
      return optim, {
          "scheduler": torch.optim.lr_scheduler.ReduceLROnPlateau(
              optim, mode="max", verbose=True
          ),
          "monitor": "val_accuracy",
          "interval": "epoch",
          "frequency": 1,
      }
  
file_path: pytorch-lightning/examples/fabric/build_your_own_trainer/run.py
imports: import lightning
  import torch
  from torchmetrics.functional.classification.accuracy import accuracy
  from trainer import MyCustomTrainer
label_desc: Use image node_id 4 for calling the MNISTModule obj's underlying member method code with example usage: obj.configure_optimizers() and returns: optim,  dict