According to Article 165(2),"It shall be the duty of the Advocate General to give advice to the government of the state upon legal matters and to perform such other duties of a legal character as may from time to time be referred or assigned to him by the Governor"