The correct option is D Basal part of diencephalon
Somatostatin is produced from the hypothalamus(one part of the diencephalon) inhibits the pituitary gland's secretion of growth hormone and thyroid stimulating hormone.
So, the correct answer is option D.