(4) by inserting after paragraph (1) the following:
(2) An agreement under this subsection shall accommodate a requesting State or political subdivision with respect to the enforcement model or combination of models, and shall accommodate a patrol model, task force model, jail model, any combination thereof, or any other reasonable model the State or political subdivision believes is best suited to the immigration enforcement needs of its jurisdiction.
(3) No Federal program or technology directed broadly at identifying inadmissible or deportable aliens shall substitute for such agreements, including those establishing a jail model, and shall operate in addition to any agreement under this subsection.
(A) No agreement under this subsection may be terminated absent a compelling reason.
(i) The Secretary shall provide a State or political subdivision written notice of intent to terminate at least 180 days prior to date of intended termination, and the notice shall fully explain the grounds for termination, along with providing evidence substantiating the Secretary’s allegations.
(ii) In order to determine whether the requirements of this paragraph have been satisfied, the State or political subdivision shall have the right—
(I) to appeal the decision of the Secretary to an administrative law judge for a hearing and decision; or
(II) to bring a civil action in an appropriate court of jurisdiction.
(B)
(C) The agreement shall remain in full effect during the course of any and all legal proceedings.
(4)
; and
(5) in paragraph (6) (as redesignated), by adding at the end the following: The Secretary of Homeland Security shall implement uniform training requirements for law enforcement officers who are, or will be, performing a function of an immigration officer under this subsection. The training requirements shall align with Federal Law Enforcement Training Center standards for training under this subsection (as in effect of the date of the enactment of this sentence)..