$terms = get_terms($taxonomy,array('parent' => 0));

    if ($terms) {
      foreach($terms as $term) {
        $term_children = get_term_children($term->term_id,$taxonomy);
        if ( count( get_term_children( $term->term_id, $taxonomy ) ) > 0 ) {

            foreach($term_children as $term_child_id) {
                $term_child = get_term_by('id',$term_child_id,$taxonomy);
            
                echo $term_child->slug . '<br>';
                echo $term_child->name . '<br>';
                echo $term_child->description . '<br>';
                
            }

        }
      if (  count( get_term_children( $term->term_id, $taxonomy ) ) === 0 ) {
        echo 'The term has no children to display.';
      }        

         
      }
    }