def METHOD_NAME(
	args, doc, child_doc, discount_fields, d, docname=None, applicable_for=None, value=None
):
	if docname:
		pr = frappe.get_doc("Pricing Rule", docname)
	else:
		pr = frappe.new_doc("Pricing Rule")
	pr.title = doc.name
	temp_args = args.copy()
	if value:
		temp_args[applicable_for] = value
	return set_args(temp_args, pr, doc, child_doc, discount_fields, d)