def METHOD_NAME(client, dataset, image_url):
    dr_1 = dataset.create_data_row(row_data=image_url, external_id="hello")
    dr_2 = dataset.create_data_row(row_data=image_url, external_id="world")
    gk_1 = str(uuid.uuid4())
    assignment_inputs = [{
        "data_row_id": dr_1.uid,
        "global_key": gk_1
    }, {
        "data_row_id": dr_2.uid,
        "global_key": gk_1
    }]
    res = client.assign_global_keys_to_data_rows(assignment_inputs)
    assert res['status'] == "PARTIAL SUCCESS"
    assert len(res['results']) == 1
    assert res['results'][0]['data_row_id'] == dr_1.uid
    assert res['results'][0]['global_key'] == gk_1
    assert len(res['errors']) == 1
    assert res['errors'][0]['data_row_id'] == dr_2.uid
    assert res['errors'][0]['global_key'] == gk_1
    assert res['errors'][0][
        'error'] == "Invalid assignment. Either DataRow does not exist, or globalKey is invalid"