you can do this by
// Get term by id (''term_id'') in Categories taxonomy.
get_term_by('id', 12, 'category')
go through below code for more information ::
$taxonomy = 'menu-food-categories';
$args_terms_id_list = array(49,5,12,80);
foreach ($args_terms_id_list as $current_term_id){
// Get term by id (''term_id'') in Categories taxonomy.
$taxonomy_terms = get_term_by('id', $current_term_id , $taxonomy)
// Do your code here
}
Thank you