code: def randint(
      a=-2,
      b=100,
      sample_size=10000,
  ):
      sample = stats.randint(low=a, high=b).rvs(size=sample_size)
      probs = (1.0 / (b - a)) * np.ones(shape=(b - a,))
      f_exp = sample_size * probs
      f_obs, _ = np.histogram(sample, bins=range(a, 1 + b))
      assert f_obs.shape == f_exp.shape
      assert np.allclose(
          np.sum(f_obs), np.sum(f_exp), rtol=1e-8, atol=1e-16
      )
      res = stats.chisquare(f_obs=f_obs, f_exp=f_exp)
      print("\nChi square test of   randint sample from scipy.stats")
      print(f"a: {a}")
      print(f"b: {b}")
      print(f"sample_size: {sample_size}")
      print(f"results: {res}\n")
      return res
  
imports: from scipy import stats
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: randint(a, b, sample_size) and returns: res