code: def shave(img_in, border=0):
      # img_in: Numpy, HWC or HW
      img = np.copy(img_in)
      h, w = img.shape[:2]
      img = img[border : h - border, border : w - border]
      return img
  
imports: import os
  import math
  import random
  import numpy
  import torch
  import cv2
  from torchvision.utils import make_grid
  from datetime import datetime
label_desc: Use image node_id 38 for calling a global function with example usage: shave(img_in, border) and returns: img