docstr: Utility method that loads a model instance with the (potentially modified) state dict.
  
  Args:
      instance: ModelPT subclass instance.
      state_dict: The state dict (which may have been modified)
      strict: Bool, whether to perform strict checks when loading the state dict.
code: def load_instance_with_state_dict(self, instance, state_dict, strict):
      """
      Utility method that loads a model instance with the (potentially modified) state dict.
  
      Args:
          instance: ModelPT subclass instance.
          state_dict: The state dict (which may have been modified)
          strict: Bool, whether to perform strict checks when loading the state dict.
      """
      instance.load_state_dict(state_dict, strict=strict)
      instance._set_model_restore_state(is_being_restored=False)
  
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 5 for calling the SaveRestoreConnector obj's underlying member method code with example usage: obj.load_instance_with_state_dict(instance, state_dict, strict) without return types