It also helps to think about why the law restricts this power at all, to balance the need for speed against the risk of misuse.
- Judicial officer: Requiring a magistrate to personally conduct every urgent search would defeat the very purpose of Section 165, which exists precisely because waiting for a formal warrant could allow evidence to be lost or destroyed.
- Any Person: Letting anyone conduct a search would strip away every safeguard against abuse of this coercive power, which is why the law ties it to a specific, accountable official rather than to the public at large.
- The investigating officer: Confining the power to the officer actually investigating the case strikes the right balance, allowing swift action to prevent loss of evidence while keeping the exercise of this power accountable to a specific, identifiable official who must record reasons for the search.
- Any police officer: Extending the power to every police officer, whether or not connected with the specific investigation, would remove the accountability that comes from tying the power to the officer who actually understands the case and can justify the urgency.
Balancing urgency against accountability again points to the investigating officer as the one Section 165 authorises.
Hence, the correct answer is The investigating officer.