I don't think it's possible to identify cops without error. They look all sorts of ways, especially undercover ones. None of the drug enforcement/undercover cops I've ever known would bother with a small-time buyer, though, unless they just stumbled across you . . .