class_docstr: Context manager that adds a forward hook to the embedding module,
  to insert noise into the model and detatch embedding when doing
  this pass
class_docstr_tok: ["Context","manager","that","adds","a","forward","hook","to","the","embedding","module",",","to","insert","noise","into","the","model","and","detatch","embedding","when","doing","this","pass"]
code: def __exit__(self, type, value, traceback):
      self.hook.remove()
      self.hook = None
  
imports: from contextlib import AbstractContextManager
  from enum import Enum
  from typing import Dict
  import torch
  import torch.nn.functional
  from pytext.common.constants import Stage
  from pytext.config import ConfigBase
  from pytext.utils.precision import maybe_float
label_desc: Use image node_id 3 for calling the R3FNoiseContextManager obj's underlying member method code with example usage: obj.__exit__(type, value, traceback) without return types