class_docstr: Create several hooks on the modules in `ms` with `hook_func`.
class_docstr_tok: ["Create","several","hooks","on","the","modules","in","`","ms","`","with","`","hook_func","`","."]
code: def __init__(self, ms, hook_func, is_forward=True, detach=True):
      self.hooks = []
      try:
          for m in ms:
              self.hooks.append(Hook(m, hook_func, is_forward, detach))
      except Exception as e:
          pass
  
imports: import base64
  import os
  import sys
  import cv2
  import numpy
  import paddle
  import paddle.nn
  from PIL import Image
label_desc: Use image node_id 1 to create a new Hooks object  with example: obj = Hooks(ms, hook_func, is_forward, detach)