code: def __init__(
      self, device: str = "cpu", *, use_half: bool = False
  ) -> None:
      self.model = ISNetDIS()
      self.device = device
      model_path = download_model("isnet")
      self.model.load_state_dict(
          torch.load(model_path, map_location="cpu")
      )
      self.model.to(device)
      self.model.eval()
  
imports: import torch
  import numpy
  import torch.nn
  import torch.nn.functional
  from PIL import Image
  from torch import Tensor
  from cftool.cv import to_rgb
  from torchvision.transforms.functional import normalize
  from ....misc.toolkit import download_model
label_desc: Use image node_id 1 to create a new ISNetAPI object  with example: obj = ISNetAPI(device)