code: def detect(net, img, device):
      img = img.transpose(2, 0, 1)
      # Creates a batch of 1
      img = np.expand_dims(img, 0)
  
      img = torch.from_numpy(img.copy()).to(device, dtype=torch.float32)
  
      return batch_detect(net, img, device)
  
file_path: face-alignment/face_alignment/detection/sfd/detect.py
imports: import torch
  import torch.nn.functional
  import cv2
  import numpy
  from .bbox import *
label_desc: Use image node_id 1 for calling a global function with example usage: detect(net, img, device) and returns: batch_detect