code: def get_rng(rng=None):
      if rng is None:
          return np.random
      if isinstance(rng, numbers.Integral):
          return np.random.RandomState(rng)
      else:
          return rng
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import contextlib
  import datetime
  import numbers
  import pdb
  import tempfile
  import time
  import numpy
  import tensorflow.compat.v1
label_desc: Use image node_id 9 for calling a global function with example usage: get_rng(rng) and returns: np, np, rng