class_docstr: Wraps a generator callable which will be called whenever this class is iterated and its result returned. This is
  used to create an iterator which can start iteration over the given generator multiple times.
code: def __init__(self, create_gen: Callable[[], Generator]) -> None:
      self.create_gen = create_gen
  
file_path: MONAI/monai/utils/decorators.py
imports: from __future__ import annotations
  from functools import wraps
  from typing import Callable, Generator
label_desc: Use image node_id 1 to create a new RestartGenerator object  with example: obj = RestartGenerator(create_gen)