class_docstr: Check invalid loss hook.
  
  This hook will regularly check whether the loss is valid
  during training.
  
  Args:
      interval (int): Checking interval (every k iterations).
          Default: 50.
code: def __init__(self, interval: int = 50) -> None:
      self.interval = interval
  
file_path: mmdetection/mmdet/engine/hooks/checkloss_hook.py
imports: from typing import Optional
  import torch
  from mmengine.hooks import Hook
  from mmengine.runner import Runner
  from mmdet.registry import HOOKS
label_desc: Use image node_id 1 to create a new CheckInvalidLossHook object from inherited base classes: Hook with example: obj = CheckInvalidLossHook(interval)