code: def deep_copy_args(func: Callable):
      def copy_args(*args, **kwargs):
          return func(
              *(copy.deepcopy(x) for x in args),
              **{k: copy.deepcopy(v) for k, v in kwargs.items()},
          )
  
      return copy_args
  
file_path: captum/tests/helpers/basic.py
imports: import copy
  import random
  import unittest
  from typing import Callable
  import numpy
  import torch
  from captum.log import patch_methods
label_desc: Use image node_id 1 for calling a global function with example usage: deep_copy_args(func) and returns: copy_args, func