How to Hide Genie Image AI Admin Menus

function plt_hide_genie_image_ai_menus() {
	//Hide the "Genie Image" menu.
	remove_menu_page('genieimage');
	//Hide the "Genie Image → Genie Image" menu.
	remove_submenu_page('genieimage', 'genieimage');
	//Hide the "Genie Image → Image License" menu.
	remove_submenu_page('genieimage', 'http://127.0.0.1/wp-admin/admin.php?page=genieimage#image-license');
}

add_action('admin_menu', 'plt_hide_genie_image_ai_menus', 100000);

Where do I put this code?