class_docstr: crop an image from four forwards.
  
  Args:
      offset_top (int, optional): The cut height for image from up to down. Default: 0.
      offset_bottom (int, optional): The cut height for image from down to up . Default: 0.
      offset_left (int, optional): The cut height for image from left to right. Default: 0.
      offset_right (int, optional): The cut width for image from right to left. Default: 0.
code: def __call__(self, im, label=None):
      if (
          self.offset_top < 0
          or self.offset_bottom < 0
          or self.offset_left < 0
          or self.offset_right < 0
      ):
          raise Exception(
              "offset_top, offset_bottom, offset_left,  offset_right must equal or greater zero"
          )
  
      if self.offset_top > 0 and self.offset_top < im.shape[0]:
          im = im[self.offset_top :, :, :]
          if label is not None:
              label = label[self.offset_top :, :]
  
      if self.offset_bottom > 0 and self.offset_bottom < im.shape[0]:
          im = im[: -self.offset_bottom, :, :]
          if label is not None:
              label = label[: -self.offset_bottom, :]
  
      if self.offset_left > 0 and self.offset_left < im.shape[1]:
          im = im[:, self.offset_left :, :]
          if label is not None:
              label = label[:, self.left_w_off :]
  
      if self.offset_right > 0 and self.offset_right < im.shape[1]:
          im = im[:, : -self.offset_right, :]
          if label is not None:
              label = label[:, : -self.offset_right]
  
      if label is None:
          return (im,)
      else:
          return (im, label)
  
file_path: PaddleSeg/contrib/LaneSeg/transforms/lane_transforms.py
imports: import cv2
  import numpy
  from paddleseg.cvlibs import manager
label_desc: Use image node_id 2 for calling the SubImgCrop obj's underlying member method code with example usage: obj.__call__(im, label) and returns: im, im,  label