code: def drange(
      min_val: Union[int, float],
      max_val: Union[int, float],
      step_val: Union[int, float],
  ) -> Generator[Union[int, float], None, None]:
      curr = min_val
      while curr < max_val:
          yield curr
          curr += step_val
  
file_path: captum/captum/robust/_core/metrics/min_param_perturbation.py
imports: import math
  from enum import Enum
  from typing import Any, Callable, cast, Dict, Generator, List, Optional, Tuple, Union
  import torch
  from captum._utils.common import _expand_additional_forward_args, _format_additional_forward_args, _reduce_list
  from captum._utils.typing import TargetType
  from captum.log import log_usage
  from captum.robust._core.perturbation import Perturbation
  from torch import Tensor
label_desc: Use image node_id 1 for calling a global function with example usage: drange(min_val, max_val, step_val) without return types