code: def _deepcopy_dict(nested_dict: Any) -> Any:
      """Utility to deepcopy a nested dict."""
      if not isinstance(nested_dict, Dict):
          return nested_dict
      return dict(nested_dict.items())
  
imports: import functools
  import os
  from enum import Enum
  from typing import Any, Dict, Iterable, List, Sequence, Tuple, Union, cast
  from pytorch_lightning.utilities.enums import LightningEnum
  from torch.utils.data import Dataset
  from flash.core.data.properties import Properties
  from flash.core.data.utils import _STAGES_PREFIX
  from flash.core.utilities.stages import RunningStage
label_desc: Use image node_id 1 for calling a global function with example usage: _deepcopy_dict(nested_dict) and returns: dict, nested_dict