code: def __init__(self) -> None:
      super().__init__()
      self.model = build_resnet18()
      self.criterion = torch.nn.CrossEntropyLoss()
  
file_path: nni/examples/compression/evaluator/lightning_evaluator.py
imports: import pytorch_lightning
  from pytorch_lightning.loggers import TensorBoardLogger
  import torch
  from torchmetrics.functional import accuracy
  import nni
  from examples.compression.models import build_resnet18
  from nni.compression import LightningEvaluator
label_desc: Use image node_id 1 to create a new MyModule object from inherited base classes: pl with example: obj = MyModule()