; and (2) by inserting after section 507 the following: 508. Law enforcement training programs (a) Definitions In this section— (1) the term approved course in alternatives to use of force, de-escalation tactics, or techniques and strategies for responding to a behavioral health crisis means a course using the training curricula established under section 1701(n)(1) or equivalents to such training curricula— (A) provided by the Attorney General under section 1701(n)(3); or (B) provided by a certified entity; and (2) the term certified entity means a public or private entity that has been certified by the Attorney General under section 1701(n)(2). (b) Authority The Attorney General shall, from amounts made available for this purpose under subsection (e), make grants to States for use by the State or a unit of government located in the State to— (1) pay for costs associated with conducting the training and for attendance by law enforcement personnel at an approved course in alternatives to use of force, de-escalation tactics, or techniques and strategies for responding to a behavioral health crisis; and (2) procure training in alternatives to use of force, de-escalation tactics, or techniques and strategies for responding to a behavioral health crisis from a certified entity. (c) Allocation of funds (1) In general Of the total amount appropriated to carry out this section for a fiscal year, the Attorney General shall allocate funds to each State in proportion to the total number of law enforcement officers in the State as compared to the total number of law enforcement officers in the United States. (2) Training for State law enforcement officers Each State may retain from the total amount of funds provided to the State for the purposes described in this section an amount that is not more than the amount that bears the same ratio to the total amount of funds as the ratio of— (A) the total number of law enforcement officers employed by the State