def METHOD_NAME():
    data_paths = pymedphys.zip_data_paths("structure-deduplication.zip")
    input_paths = [path for path in data_paths if path.parent.name == "input"]
    for input_path in input_paths:
        input_dcm = pydicom.read_file(str(input_path), force=True)
        baseline_path = input_path.parent.parent.joinpath("baseline", input_path.name)
        baseline_dcm = pydicom.read_file(str(baseline_path), force=True)
        # NOTE: Sorting was added in due to an upgrade in shapely which
        # resulted in a different structure insertion order. See
        # <https://github.com/pydicom/pydicom/issues/1473#issuecomment-895622509>
        # for more details.
        input_dcm = _sort_ds(input_dcm)
        baseline_dcm = _sort_ds(baseline_dcm)
        assert str(input_dcm) != str(baseline_dcm)
        roi_contour_sequences = input_dcm.ROIContourSequence
        for item in roi_contour_sequences:
            pymedphys.dicom.merge_contours(item, inplace=True)
        input_dcm = _sort_ds(input_dcm)
        assert str(input_dcm) == str(baseline_dcm)
        with tempfile.TemporaryDirectory() as temp_dir:
            output_filename = str(pathlib.Path(temp_dir).joinpath("temp.dcm"))
            command = pmp_test_utils.get_pymedphys_dicom_cli() + [
                "merge-contours",
                str(input_path),
                output_filename,
            ]
            subprocess.check_call(command)
            cli_dcm = pydicom.read_file(output_filename, force=True)
        cli_dcm = _sort_ds(cli_dcm)
        assert str(cli_dcm) == str(baseline_dcm)