A. The production of insulin by beta cells in the islets of Langerhans is an example of endocrine function.