docstr: Update subconfigs of the model if ModelPT has submodules
  Should be called before updating artifacts paths
code: def _update_subconfigs(model: "nemo_classes.ModelPT", path2yaml_file):
      """
      Update subconfigs of the model if ModelPT has submodules
      Should be called before updating artifacts paths
      """
      if not model.has_nemo_submodules():
          # no submodules => nothing to update
          return
      conf = OmegaConf.load(path2yaml_file)
      # update subconfigs for all children recoursively
      # parent configs updated before children
      for _, conf_path, submodule in model.named_nemo_modules():
          if not conf_path:  # self
              continue
          OmegaConf.update(conf, conf_path, submodule.cfg)
      with open(path2yaml_file, "w", encoding="utf-8") as fout:
          OmegaConf.save(config=conf, f=fout, resolve=True)
  
imports: from __future__ import annotations
  import os
  import shutil
  import tarfile
  import tempfile
  import uuid
  from typing import Optional, Set, Union
  import torch
  from omegaconf import DictConfig, OmegaConf
  from omegaconf.omegaconf import open_dict
  from pytorch_lightning.trainer.trainer import Trainer
  from nemo.core import classes
  from nemo.utils import logging, model_utils
  from nemo.utils.app_state import AppState
  from nemo.utils.get_rank import is_global_rank_zero
  from nemo.utils.model_utils import inject_model_parallel_rank
label_desc: Use image node_id 10 for calling the SaveRestoreConnector obj's underlying member method code with example usage: obj._update_subconfigs(model, path2yaml_file) without return types