; and (B) that is not located at a port of entry along an international border of the United States. (3) Law enforcement official The term law enforcement official means— (A) an agent or officer of U.S. Customs and Border Protection; (B) an agent or officer of U.S. Immigration and Customs Enforcement; or (C) an officer or employee of a State, or a political subdivision of a State, who is carrying out the functions of an immigration officer pursuant to— (i) an agreement entered into under section 287(g) of the Immigration and Nationality Act ( 8 U.S.C. 1357(g) ); (ii) authorization under title IV of the Tariff Act of 1930 ( 19 U.S.C. 1401 et seq.); or (iii) any other agreement with the Department of Homeland Security, including any Federal grant program. (4) Patrol stop The term patrol stop means search, seizure, or interrogation of a motorist, passenger, or pedestrian initiated anywhere except as part of an inspection at a port of entry or a primary inspection at a checkpoint. (5) Primary inspection The term primary inspection means an initial inspection of a vehicle or individual at a checkpoint. (6) Secondary inspection The term secondary inspection means a further inspection of a vehicle or individual that is conducted following a primary inspection. (b) Data collection by law enforcement officials enforcing United States laws and regulations and making border security stops (1) Requirement for data collection regarding stops and searches A law enforcement official who initiates a patrol stop or who detains any individual beyond a brief and limited inquiry, such as a primary inspection at a checkpoint, shall record— (A) the date, time, and location of the contact; (B) the law enforcement official’s basis for, or circumstances surrounding, the contact, including if such individual’s perceived race or ethnicity contributed to the basis for, and circumstances surrounding, the contact