def METHOD_NAME(read_file=None):
    with unittest.mock.patch('yt_dlp.options.Config') as mock:
        mock.return_value = Config(create_parser())
        if read_file is not None:
            mock.read_file = read_file
        yield mock