def METHOD_NAME(
    beam, beam_collimation, rotation_direction, dose_rate, gantry, coll, nominal_energy
):
    num_cps = len(gantry)
    meterset_weight = np.linspace(0, 1, num_cps)
    cp_bounds = bounding_control_points(
        beam, beam_collimation, rotation_direction, dose_rate
    )
    control_point_sequence = pydicom.Sequence([copy.deepcopy(cp_bounds["first"])])
    control_point_sequence[0].GantryAngle = str(gantry[0])
    control_point_sequence[0].BeamLimitingDeviceAngle = str(coll[0])
    control_point_sequence[0].NominalBeamEnergy = nominal_energy
    for i in range(1, num_cps - 1):
        cp = copy.deepcopy(cp_bounds["mid"])
        cp.GantryAngle = str(gantry[i])
        cp.BeamLimitingDeviceAngle = str(coll[i])
        cp.CumulativeMetersetWeight = str(round(meterset_weight[i], 6))
        cp.ControlPointIndex = str(i)
        control_point_sequence.append(cp)
    cp = copy.deepcopy(cp_bounds["last"])
    cp.GantryAngle = str(gantry[-1])
    cp.BeamLimitingDeviceAngle = str(coll[-1])
    cp.ControlPointIndex = str(num_cps - 1)
    control_point_sequence.append(cp)
    return control_point_sequence