code: def very_slightly_biased_randint(max_val_vector):
      sample_dtype = np.uint64
      out_dtype = max_val_vector.dtype
      samples = np.random.randint(
          low=0,
          high=np.iinfo(sample_dtype).max,
          size=max_val_vector.shape,
          dtype=sample_dtype,
      )
      return np.mod(
          samples, max_val_vector.astype(sample_dtype)
      ).astype(out_dtype)
  
file_path: autodist/examples/benchmark/utils/recommendation/stat_utils.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: very_slightly_biased_randint(max_val_vector) and returns: np