def METHOD_NAME(
    example_files: List[str], plotting_on: bool = False
) -> List[Tuple[str, bool]]:
    """
    Run the given example files.
    Returns the list of examples run, along with a boolean indicating
    whether there were any errors when running the example (True
    indicating no errors, and False the opposite).
    """
    if not plotting_on:
        mpl.use("Agg")
        # Disable CAD viewer by mocking out FreeCAD API's displayer.
        # Note that if we use a new CAD backend, this must be changed.
        mock.patch("bluemira.codes._freecadapi.show_cad").start()
    failed = []
    for example in example_files:
        display_path = Path(example).relative_to(args.examples_dir)
        print(BANNER.format(display_path))
        result = run_example(example)
        # Flush stdout so we don't get un-flushed output from previous
        # examples under this example's banner
        sys.stdout.flush()
        failed.append((display_path, result))
    return failed