code: def uninject_model_parallel_rank(filepath):
      filepath = str(filepath)
      if any(
          [
              s
              for s in ["mp_rank", "tp_rank", "fsdp_shard"]
              if s in filepath
          ]
      ):
          dirname = os.path.dirname(os.path.dirname(filepath))
          basename = os.path.basename(filepath)
          filepath = os.path.join(dirname, basename)
          return filepath
      else:
          return filepath
  
imports: import copy
  import importlib
  import os
  from dataclasses import dataclass, is_dataclass
  from enum import Enum
  from functools import lru_cache
  from pathlib import Path
  from typing import List, Optional, Tuple, Union
  import wrapt
  from nemo.utils import AppState, logging
  from nemo.utils.data_utils import resolve_cache_dir
  from nemo.utils.data_utils import is_datastore_path
label_desc: Use image node_id 13 for calling a global function with example usage: uninject_model_parallel_rank(filepath) and returns: filepath, filepath