def METHOD_NAME(net, **kwargs):
    """
    Gets called by runpp or rundcpp with different arguments.
    """
    # get infos from options
    ac = net["_options"]["ac"]
    algorithm = net["_options"]["algorithm"]
    net["converged"] = False
    net["OPF_converged"] = False
    _add_auxiliary_elements(net)
    if not ac or net["_options"]["init_results"]:
        verify_results(net)
    else:
        init_results(net)
    if net["_options"]["voltage_depend_loads"] and algorithm not in ['nr', 'bfsw'] and not (
            allclose(net.load.const_z_percent.values, 0) and
            allclose(net.load.const_i_percent.values, 0)):
        logger.error(("pandapower powerflow does not support voltage depend loads for algorithm "
                      "'%s'!") % algorithm)
    # clear lookups
    net._pd2ppc_lookups = {"bus": array([], dtype=int64), "ext_grid": array([], dtype=int64),
                           "gen": array([], dtype=int64), "branch": array([], dtype=int64)}
    # convert pandapower net to ppc
    ppc, ppci = _pd2ppc(net)
    # store variables
    net["_ppc"] = ppc
    if "VERBOSE" not in kwargs:
        kwargs["VERBOSE"] = 0
    # ----- run the powerflow -----
    result = _run_pf_algorithm(ppci, net["_options"], **kwargs)
    # read the results (=ppci with results) to net
    _ppci_to_net(result, net)