class_docstr: When an object of this class enters a `with` block, it starts:
  - preventing torch's layer initialization functions from working
  - changes CLIP and OpenCLIP to not download model weights
  - changes CLIP to not make requests to check if there is a new version of a file you already have
  
  When it leaves the block, it reverts everything to how it was before.
  
  Use it like this:
  ```
  with DisableInitialization():
      do_things()
  ```
code: def __exit__(self, exc_type, exc_val, exc_tb):
      self.restore()
  
imports: import ldm.modules.encoders.modules
  import open_clip
  import torch
  import transformers.utils.hub
  from modules import shared
label_desc: Use image node_id 4 for calling the DisableInitialization obj's underlying member method code with example usage: obj.__exit__(exc_type, exc_val, exc_tb) without return types