How to Hide the "AM LottiePlayer" Dashboard Widget

function plt_hide_am_lottieplayer_dashboard_widgets() {
	$screen = get_current_screen();
	if ( !$screen ) {
		return;
	}

	//Remove the "AM LottiePlayer" widget.
	remove_meta_box('am_lottieplayer_dashboard_widget', 'dashboard', 'normal');
}

add_action('wp_dashboard_setup', 'plt_hide_am_lottieplayer_dashboard_widgets', 20);

Where do I put this code?