human
Here's a good function header given the following:
I wrote the below code

    def transform_boxes_relative_to_boxes(boxes, reference_boxes):
        boxes = tf.reshape(boxes, [(-1), 2, 2])
        min_corner = tf.expand_dims(reference_boxes[:, 0:2], 1)
        max_corner = tf.expand_dims(reference_boxes[:, 2:4], 1)
        transformed_boxes = ((boxes - min_corner) / (max_corner - min_corner))
        return tf.reshape(transformed_boxes, [(-1), 4])
    box_masks = tf.expand_dims(box_masks, axis=3)
    num_boxes = tf.shape(box_masks)[0]
    unit_boxes = tf.concat([tf.zeros([num_boxes, 2]), tf.ones([num_boxes, 2])], axis=1)
    reverse_boxes = transform_boxes_relative_to_boxes(unit_boxes, boxes)
    image_masks = tf.image.crop_and_resize(image=box_masks, boxes=reverse_boxes, box_ind=tf.range(num_boxes), crop_size=[image_height, image_width], extrapolation_value=0.0)
    return tf.squeeze(image_masks, axis=3)

What's a good function header?
assistant
#Here's a good function header.

def reframe_box_masks_to_image_masks(box_masks, boxes, image_height, image_width):