def METHOD_NAME():
    # checks that the gridding parameters are used and that conflicts in parameters
    # are resolved as expected.
    tempdir = tempfile.mkdtemp()
    grid_file = os.path.join(tempdir, "temp_grid_params.nc")
    # check that the grid parameters work
    cfkwargs = {
        "storage_filename": grid_file,
        "grid_shape": (10, 10, 10),
        "grid_limit_x": (-10000, 10000),
        "grid_limit_y": (-10000, 10000),
        "grid_limit_z": (500, 20000),
    }
    ds = data_dir_load(cf_nongridded, kwargs=cfkwargs)
    expected_width = []
    for dim in "xyz":
        minval, maxval = cfkwargs[f"grid_limit_{dim}"]
        expected_width.append(maxval - minval)
    expected_width = np.array(expected_width)
    actual_width = ds.domain_width.to("m").value
    assert all(expected_width == actual_width)
    assert all(ds.domain_dimensions == cfkwargs["grid_shape"])
    # check the grid parameter conflicts
    # on re-load with default grid params it will reload storage_filename if
    # it exists. Just checking that this runs...
    _ = data_dir_load(cf_nongridded, kwargs={"storage_filename": grid_file})
    # if storage_filename exists, grid parameters are ignored (with a warning)
    # and the domain_dimensions will match the original
    new_kwargs = {"storage_filename": grid_file, "grid_shape": (15, 15, 15)}
    ds = data_dir_load(cf_nongridded, kwargs=new_kwargs)
    assert all(ds.domain_dimensions == cfkwargs["grid_shape"])
    # if we overwrite, the regridding should run and the dimensions should match
    # the desired dimensions
    new_kwargs["storage_overwrite"] = True
    ds = data_dir_load(cf_nongridded, kwargs=new_kwargs)
    assert all(ds.domain_dimensions == new_kwargs["grid_shape"])
    shutil.rmtree(tempdir)