code: def np_local_seed(seed):
      state = np.random.get_state()
      np.random.seed(seed)
      try:
          yield
      finally:
          np.random.set_state(state)
  
file_path: icevision/icevision/utils/utils.py
imports: from icevision.imports import *
label_desc: Use image node_id 10 for calling a global function with example usage: np_local_seed(seed) without return types