def METHOD_NAME(master_to_slave_vars, network_features, locator, network_type
                   ):
    """
    Computes the total pump investment cost
    :type master_to_slave_vars : class context
    :type network_features : class ntwFeatures
    :rtype pumpCosts : float
    :returns pumpCosts: pumping cost
    """
    if network_type == "DH":
        # local variables
        nominal_E_pump_W = network_features.E_pump_DHN_W
        nominal_massflowrate_kgs = network_features.mass_flow_rate_DHN
        #get the mass flow rate of this neworkt and the pressireloss
        data = master_to_slave_vars.DH_network_summary_individual
        mass_flow_rate_kgs = data["mdot_DH_netw_total_kgpers"].values
    if network_type == "DC":
        # local variables
        nominal_E_pump_W = network_features.E_pump_DCN_W
        nominal_massflowrate_kgs = network_features.mass_flow_rate_DCN
        #get the mass flow rate of this neworkt and the pressireloss
        data = master_to_slave_vars.DC_network_summary_individual
        if master_to_slave_vars.WasteServersHeatRecovery == 1:
            mass_flow_rate_kgs = data["mdot_cool_space_cooling_and_refrigeration_netw_all_kgpers"].values
        else:
            mass_flow_rate_kgs = data["mdot_cool_space_cooling_data_center_and_refrigeration_netw_all_kgpers"].values
    #get pumping energy and peak load
    E_pump_W = nominal_E_pump_W * (mass_flow_rate_kgs / nominal_massflowrate_kgs)
    peak_pump_power_W = np.max(E_pump_W)
    #get costs
    Capex_a_pump_USD, \
    Opex_fixed_pump_USD, \
    Capex_pump_USD = calc_Cinv_pump(peak_pump_power_W, locator, 'PU1')  # investment of Machinery
    return Capex_a_pump_USD, Opex_fixed_pump_USD, Capex_pump_USD, E_pump_W