code: def summary(self) -> str:
      with open("recorded_durations.json", "w") as f:
          json.dump(self.recorded_durations, f)
      return super().summary()
  
file_path: life2vec/src/utils.py
imports: import warnings
  from pytorch_lightning import Callback, Trainer, profiler
  import importlib
  from typing import Any
  import json
  from collections.abc import Mapping, Iterable
  from dataclasses import is_dataclass, fields
label_desc: Use image node_id 1 for calling the DetailedProfiler obj's underlying member method code with example usage: obj.summary() and returns: super