code: def get_values(n=100, lo=None, hi=None, integers=False):
      for _ in range(n):
          if integers:
              yield random.randint(lo, hi)
          else:
              yield random.random() * (hi - lo) + lo
  
file_path: captum/tests/attr/test_stat.py
imports: import random
  import torch
  from captum.attr import Max, Mean, Min, MSE, StdDev, Sum, Summarizer, Var
  from tests.helpers.basic import assertTensorAlmostEqual, BaseTest
label_desc: Use image node_id 1 for calling a global function with example usage: get_values(n, lo, hi, integers) without return types