The dartos tunic is a layer of smooth muscle in the scrotal wall that contracts in cold conditions to regulate testicular temperature, helping maintain optimal conditions for sperm production. It is not found in the uterine, urethral, or abdominal walls.