def METHOD_NAME(
    system: System,
    driver: LegateDriver | None = None,
) -> None:
    """Print system and driver configuration values.
    Parameters
    ----------
    system : System
        A System instance to obtain Legate and Legion paths from
    driver : Driver or None, optional
        If not None, a Driver instance to obtain command invocation and
        environment from (default: None)
    Returns
    -------
        None
    """
    print(f"\n{rule('Legion Python Configuration')}")
    print(section("\nLegate paths:"))
    print(indent(str(system.legate_paths), prefix="  "))
    print(section("\nLegion paths:"))
    print(indent(str(system.legion_paths), prefix="  "))
    print(section("\nVersions:"))
    print(indent(str(get_versions()), prefix="  "))
    if driver:
        print(section("\nCommand:"))
        cmd = " ".join(quote(t) for t in driver.cmd)
        print(f"  {value(cmd)}")
        if keys := sorted(driver.custom_env_vars):
            print(section("\nCustomized Environment:"))
            print(
                indent(
                    kvtable(driver.env, delim="=", align=False, keys=keys),
                    prefix="  ",
                )
            )
    print(f"\n{rule()}")
    print(flush=True)