code: def numpy_seed(seed):
      """Context manager that temporarily sets the numpy.random seed."""
      if seed is not None:
          prev_rng_state = np.random.get_state()
          np.random.seed(seed)
      yield
      if seed is not None:
          np.random.set_state(prev_rng_state)
  
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 10 for calling a global function with example usage: numpy_seed(seed) without return types