def METHOD_NAME(image, bbox, exemplar_size=127, context_amount=0.5, search_size=255, padding=(0, 0, 0)):
    target_pos = [(bbox[0] + bbox[2] / 2.), (bbox[1] + bbox[3] / 2.)]
    target_size = [bbox[2], bbox[3]]
    wc_z = target_size[1] + context_amount * sum(target_size)
    hc_z = target_size[0] + context_amount * sum(target_size)
    s_z = np.sqrt(wc_z * hc_z)
    scale_z = exemplar_size / s_z
    d_search = (search_size - exemplar_size) / 2
    pad = d_search / scale_z
    s_x = s_z + 2 * pad
    x = crop_hwc(image, pos_s_2_bbox(target_pos, s_x), search_size, padding)
    return x