def METHOD_NAME():
    config_text = _get_pyproj_toml_config()
    if config_text:
        default_config = toml.loads(config_text).get('tool', {}).get('pyflyby',{})
    else:
        default_config = {}
    def _add_opts_and_defaults(parser):
        _addopts(parser)
        parser.set_defaults(**default_config)
    options, args = parse_args(
        _add_opts_and_defaults, import_format_params=True, modify_action_params=True, defaults=default_config)
    def modify(x):
        if options.canonicalize:
            x = canonicalize_imports(x, params=options.params)
        if options.transformations:
            x = transform_imports(x, options.transformations,
                                  params=options.params)
        if options.replace_star_imports:
            x = replace_star_imports(x, params=options.params)
        return fix_unused_and_missing_imports(
            x, params=options.params,
            add_missing=options.add_missing,
            remove_unused=options.remove_unused,
            add_mandatory=options.add_mandatory,
            )
    process_actions(args, options.actions, modify)