docstr: Clip boxes of the pad area.
  :param tensor: [n, c, H, W]
  :param pad_shape: [h, w]
  :return: [n, c, h, w]
docstr_tok: ["Clip","boxes","of","the","pad","area",".",":","param","tensor",":","[","n",",","c",",","H",",","W","]",":","param","pad_shape",":","[","h",",","w","]",":","return",":","[","n",",","c",",","h",",","w","]"]
code: def _clip_pad(tensor, pad_shape):
      """
      Clip boxes of the pad area.
      :param tensor: [n, c, H, W]
      :param pad_shape: [h, w]
      :return: [n, c, h, w]
      """
      H, W = tensor.shape[2:]
      h, w = pad_shape
  
      if h < H or w < W:
          tensor = tensor[:, :, :h, :w].copy()
  
      return tensor
  
imports: from __future__ import print_function
  import sys
  import os
  import datetime
  import time
  import numpy
  import mxnet
  from mxnet import ndarray
  import cv2
  from rcnn.logger import logger
  from rcnn.processing.bbox_transform import clip_boxes
  from rcnn.processing.generate_anchor import generate_anchors_fpn, anchors_plane
  from rcnn.processing.nms import gpu_nms_wrapper, cpu_nms_wrapper
  from rcnn.processing.bbox_transform import bbox_overlaps
label_desc: Use image node_id 8 for calling the RetinaFace obj's underlying member method code with example usage: obj._clip_pad(tensor, pad_shape) and returns: tensor