code: def finalize_metrics(self) -> None:
      for metric in self.metrics:
          metric_logs = metric.finalize()
          for k, v in metric_logs.items():
              for entry in self.metrics_keys_to_log_to_prog_bar:
                  if entry[0] == k:
                      self.log(entry[1], v, prog_bar=True)
                      self.log(f"{metric.name}/{k}", v)
                  else:
                      self.log(f"{metric.name}/{k}", v)
  
file_path: icevision/icevision/engines/lightning/lightning_model_adapter.py
imports: import pytorch_lightning
  from icevision.imports import *
  from icevision.metrics import *
label_desc: Use image node_id 3 for calling the LightningModelAdapter obj's underlying member method code with example usage: obj.finalize_metrics() without return types