docstr: Configure an optimizer.
docstr_tok: ["Configure","an","optimizer","."]
code: def configure_optimizers(self):
      """Configure an optimizer."""
      return torch.optim.Adam(self.loss_fn.parameters(), lr=self.lr)
  
file_path: pyro/examples/svi_lightning.py
imports: import argparse
  import lightning.pytorch
  import torch
  import pyro
  import pyro.distributions
  from pyro.infer import Trace_ELBO
  from pyro.infer.autoguide import AutoNormal
  from pyro.nn import PyroModule
label_desc: Use image node_id 4 for calling the PyroLightningModule obj's underlying member method code with example usage: obj.configure_optimizers() and returns: torch