code: def restore_faces(np_image):
      face_restorers = [
          x
          for x in shared.face_restorers
          if x.name() == shared.opts.face_restoration_model
          or shared.opts.face_restoration_model is None
      ]
      if len(face_restorers) == 0:
          return np_image
  
      face_restorer = face_restorers[0]
  
      return face_restorer.restore(np_image)
  
imports: from modules import shared
label_desc: Use image node_id 1 for calling a global function with example usage: restore_faces(np_image) and returns: face_restorer, np_image