def METHOD_NAME(
    control_data_file: str | os.PathLike, scene_path_from_media_dir: str | os.PathLike
):
    """Decorator used for any test that needs to check a rendered scene/video.
    .. warning::
        The directories, such as the movie dir or sections dir, are expected to abide by the default.
        This requirement could be dropped if the manim config were to be accessible from ``wrapper`` like in ``frames_comparison.py``.
    Parameters
    ----------
    control_data_file
        Name of the control data file, i.e. the .json containing all the pre-rendered references of the scene tested.
        .. warning:: You don't have to pass the path here.
    scene_path_from_media_dir
        The path of the scene generated, from the media dir. Example: /videos/1080p60/SquareToCircle.mp4.
    See Also
    --------
    tests/helpers/video_utils.py : create control data
    """
    control_data_file = Path(control_data_file)
    scene_path_from_media_dir = Path(scene_path_from_media_dir)
    def decorator(f):
        @wraps(f)
        def wrapper(*args, **kwargs):
            # NOTE : Every args goes seemingly in kwargs instead of args; this is perhaps Pytest.
            result = f(*args, **kwargs)
            tmp_path = kwargs["tmp_path"]
            tests_directory = Path(__file__).absolute().parent.parent
            path_control_data = (
                tests_directory / "control_data" / "videos_data" / control_data_file
            )
            path_video_gen = tmp_path / scene_path_from_media_dir
            if not path_video_gen.exists():
                for parent in reversed(path_video_gen.parents):
                    if not parent.exists():
                        raise AssertionError(
                            f"'{parent.name}' does not exist in '{parent.parent}' (which exists). ",
                        )
            # TODO: use when pytest --set_test option
            # save_control_data_from_video(path_video_gen, control_data_file.stem)
            check_video_data(path_control_data, path_video_gen)
            return result
        return wrapper
    return decorator