code: def gfpgan_fix_faces(np_image):
      model = gfpgann()
      if model is None:
          return np_image
  
      send_model_to(model, devices.device_gfpgan)
  
      np_image_bgr = np_image[:, :, ::-1]
      cropped_faces, restored_faces, gfpgan_output_bgr = model.enhance(
          np_image_bgr,
          has_aligned=False,
          only_center_face=False,
          paste_back=True,
      )
      np_image = gfpgan_output_bgr[:, :, ::-1]
  
      model.face_helper.clean_all()
  
      if shared.opts.face_restoration_unload:
          send_model_to(model, devices.cpu)
  
      return np_image
  
file_path: stable-diffusion-webui/modules/gfpgan_model.py
imports: import os
  import facexlib
  import gfpgan
  import modules.face_restoration
  from modules import paths, shared, devices, modelloader, errors
label_desc: Use image node_id 3 for calling a global function with example usage: gfpgan_fix_faces(np_image) and returns: np_image, np_image