def METHOD_NAME(self, unchunk_coords: Union[bool, str, Sequence[str]], in_place: bool,
                           expected_output_path: str, expected_cons_time: bool = False,
                           expected_cons_time_bnds: bool = False):
    if not in_place:
        optimize_dataset(INPUT_CUBE_PATH, output_path=OUTPUT_CUBE_PATTERN,
                         in_place=in_place, unchunk_coords=unchunk_coords)
    else:
        optimize_dataset(INPUT_CUBE_PATH,
                         in_place=in_place, unchunk_coords=unchunk_coords)
    self._assert_consolidated(expected_output_path, expected_cons_time, expected_cons_time_bnds)