code: def __init__(self, iterable: Iterable):
      self.iterable = iterable
      self.iterator = iter(itertools.cycle(self.iterable))
  
imports: import math
  import itertools
  from dataclasses import replace
  from typing import Mapping, Any, Sequence, Iterable, Iterator, Union, Tuple, Dict, Set
label_desc: Use image node_id 1 to create a new InfiniteYield object from inherited base classes: Iterator with example: obj = InfiniteYield(iterable)