code: def deepcopy_dict(params: Dict[str, Any]) -> Dict[str, Any]:
      """Perform deep copy on any dict.
  
      Support tensor copying here.
      """
      out = {}
      for k, v in params.items():
          # NOTE: Only Tensors created explicitly by the user (graph leaves) support the deepcopy protocol
          if isinstance(v, Tensor):
              out.update({k: v.clone()})
          else:
              out.update({k: v})
      return out
  
imports: from functools import wraps
  from typing import Any, Callable, Dict, List, Optional, Tuple, Union
  import torch
  from torch.distributions import Beta, Uniform
  from kornia.core import Tensor, as_tensor
  from kornia.geometry.boxes import Boxes
  from kornia.geometry.keypoints import Keypoints
  from kornia.utils import _extract_device_dtype
label_desc: Use image node_id 16 for calling a global function with example usage: deepcopy_dict(params) and returns: out