code: def _remap_keypoints(
      keypoints, padded_w, padded_h, expand, data_shape, ratio
  ):
      """
      Remap bboxes in (x0, y0, x1, y1) format into the input image space
      Parameters
      ----------
      bboxes
      padded_w
      padded_h
      expand
  
      Returns
      -------
  
      """
      keypoints[:, 0::2] *= padded_w / (data_shape * ratio)
      keypoints[:, 1::2] *= padded_h / data_shape
      keypoints[:, 0::2] -= expand[0]
      keypoints[:, 1::2] -= expand[1]
  
      return keypoints
  
file_path: gluon-cv/gluoncv/model_zoo/smot/general_detector.py
imports: import logging
  import numpy
  import mxnet
  from gluoncv.data import COCODetection
  from .utils import mxnet_frame_preprocessing, timeit_context
  from .utils import remap_bboxes
  from .presets import *
label_desc: Use image node_id 2 for calling a global function with example usage: _remap_keypoints(keypoints, padded_w, padded_h, expand, data_shape, ratio) and returns: keypoints