code: def random_radius(radius: Optional[float]) -> Iterator[float]:
      if radius:
          radius = radius if radius < 0.5 else radius / 2
      while True:
          yield radius or (random.random() / 2)
  
file_path: AugLy/augly/video/augmenters/cv2/shapes.py
imports: import random
  from typing import Iterator, List, Optional, Tuple
  import cv2
  import numpy
  from augly.video.augmenters.cv2.base_augmenter import BaseCV2Augmenter
label_desc: Use image node_id 5 for calling the VideoDistractorByShapes obj's underlying member method code with example usage: obj.random_radius(radius) without return types