code: def on_validation_end(self):
      from pytorch_lightning.trainer.states import TrainerFn
  
      if self.trainer.state.fn == TrainerFn.VALIDATING:
          self._final_report()
  
imports: import logging
  import os
  import warnings
  from pathlib import Path
  from typing import Any, Dict, Union, Optional, List, Type
  import pytorch_lightning
  import torch.nn
  import torch.nn.functional
  import torch.optim
  import torchmetrics
  import torchmetrics.classification
  import torch.utils.data
  import nni
  from nni.common.serializer import is_traceable
  from nni.nas.evaluator import MutableEvaluator
label_desc: Use image node_id 9 for calling the SupervisedLearningModule obj's underlying member method code with example usage: obj.on_validation_end() without return types