def METHOD_NAME(path_model: str, raw_file: str,
                                    sonar_model: str, test_path: dict) -> None:
    """
    Integration Test that ensure writing variables
    directly to a temporary zarr store and then assigning
    them to the EchoData object create an EchoData object
    that is identical to the method of not writing directly
    to a zarr.
    Parameters
    ----------
    path_model: str
        The key in ``test_path`` pointing to the appropriate
        directory containing ``raw_file``
    raw_file: str
        The raw file to test
    sonar_model: str
        The sonar model corresponding to ``raw_file``
    test_path: dict
        A dictionary of all the model paths.
    Notes
    -----
    This test should only be conducted with small raw files
    as DataSets must be loaded into RAM!
    """
    raw_file_path = test_path[path_model] / raw_file
    ed_zarr = open_raw(raw_file_path, sonar_model=sonar_model, use_swap=True, max_mb=100)
    ed_no_zarr = open_raw(raw_file_path, sonar_model=sonar_model, use_swap=False)
    for grp in ed_zarr.group_paths:
        # remove conversion time so we can do a direct comparison
        if "conversion_time" in ed_zarr[grp].attrs:
            del ed_zarr[grp].attrs["conversion_time"]
            del ed_no_zarr[grp].attrs["conversion_time"]
        # Compare angle, power, complex, if zarr drop the zarr variables and compare datasets
        if grp == "Sonar/Beam_group2":
            var_to_comp = ['angle_athwartship', 'angle_alongship', 'backscatter_r']
            ed_zarr, ed_no_zarr = compare_zarr_vars(ed_zarr, ed_no_zarr, var_to_comp, grp)
        if grp == "Sonar/Beam_group1":
            if 'backscatter_i' in ed_zarr[grp]:
                var_to_comp = ['backscatter_r', 'backscatter_i']
            else:
                var_to_comp = ['angle_athwartship', 'angle_alongship', 'backscatter_r']
            ed_zarr, ed_no_zarr = compare_zarr_vars(ed_zarr, ed_no_zarr, var_to_comp, grp)
        assert ed_zarr[grp].identical(ed_no_zarr[grp])
    # create a copy of zarr_file_name. The join is necessary so that we are not referencing zarr_file_name
    temp_zarr_path = ''.join(ed_zarr.parsed2zarr_obj.zarr_file_name)
    del ed_zarr
    # make sure that the temporary zarr was deleted
    assert Path(temp_zarr_path).exists() is False