How to Hide the "AI Studio Agent" Admin Menu

function plt_hide_sg_ai_studio_menus() {
	//Hide the "AI Studio Agent" menu.
	remove_menu_page('sg-ai-studio');
}

add_action('admin_menu', 'plt_hide_sg_ai_studio_menus', 11);

Where do I put this code?