code: def rng_uniform(rng):
      """Get the unform/randint from the rng."""
      # prefer Generator.integers, fall back to RandomState.randint
      return getattr(rng, "integers", getattr(rng, "randint", None))
  
imports: import inspect
  import operator
  import os
  import warnings
  from contextlib import contextmanager
  from io import StringIO
  from math import log
  from pprint import pprint
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: rng_uniform(rng) and returns: getattr