For this reason, a court must know the types of worship [practiced by gentiles] - Note Chapter 2, Halachah 2, which forbids the study of idolatrous practices.
License to do so is granted the sages to allow them to gain the knowledge mentioned in this halachah.