def METHOD_NAME(coords, center, scale, output_size):
    def affine_transform(pt, t):
        new_pt = np.array([pt[0], pt[1], 1.], dtype=np.float32).T
        new_pt = np.dot(t, new_pt)
        return new_pt[:2]
    target_coords = np.zeros(coords.shape)
    trans = CenterNet.get_affine_transform(center, scale, 0, output_size, inv=True)
    for p in range(coords.shape[0]):
        target_coords[p, 0:2] = affine_transform(coords[p, 0:2], trans)
    return target_coords