code: def to(self, device: str, *, use_half: bool = False) -> None:
      self.device = device
      self.predictor.to(device)
  
file_path: carefree-learn/cflearn/api/cv/third_party/iharm/api.py
imports: import numpy
  from typing import Union
  from PIL.Image import Image
  from cftool.cv import read_image
  from .inference.utils import load_model
  from .inference.predictor import Predictor
  from .....misc.toolkit import download_model
label_desc: Use image node_id 2 for calling the ImageHarmonizationAPI obj's underlying member method code with example usage: obj.to(device) without return types