def _create_mock_args(
    config_file=None,
    examples_dir=None,
    custom_dir=None,
    use_color=None,
    pager_cmd=None,
    version=False,
    list=False,
    squeeze=None,
    program=None,
    edit=False,
):
    """Helper to create an argument named tuple."""
    return MockArgs(
        config_file=config_file,
        examples_dir=examples_dir,
        custom_dir=custom_dir,
        use_color=use_color,
        pager_cmd=pager_cmd,
        version=version,
        list=list,
        squeeze=squeeze,
        program=program,
        edit=edit,
    )
Helper to create an argument named tuple.
test/core_test.py