code: def patch_encryption():
      """
      patch_torch is used to patch torch.save and torch.load methods to replace original ones.
  
      Patched details include:
  
      | 1. torch.save is now located at bigdl.nano.pytorch.encryption.save
      | 2. torch.load is now located at bigdl.nano.pytorch.encryption.load
  
      A key argument is added to torch.save and torch.load which is used to
      encrypt/decrypt the content before saving/loading it to/from disk.
  
      .. note::
  
         Please be noted that the key is only secured in Intel SGX mode.
      """
      global is_encryption_patched
      if is_encryption_patched:
          return
      mapping_torch = _get_encryption_patch_map()
      for mapping_iter in mapping_torch:
          setattr(mapping_iter[0], mapping_iter[1], mapping_iter[2])
      is_encryption_patched = True
  
label_desc: Use image node_id 1 for calling a global function with example usage: patch_encryption() without return types