In connection with inspections and examinations conducted in accordance with § 148.22(a) of this chapter, United States Customs officers stationed in a foreign country may exercise such functions and perform such duties (including inspections, examinations, searches, seizures, and arrests), as may be permitted by treaty, agreement, or law of the country in which they are stationed.