code: def warn_deprecated(api, new_api=None):
      warning = get_warning(api, new_api, replace_newlines=True)
      warnings.warn(warning, stacklevel=2)
  
imports: import torch._functorch.apis
  import torch._functorch.eager_transforms
  import torch._functorch.make_functional
  from torch._functorch.vmap import in_dims_t, out_dims_t
  from torch._functorch.eager_transforms import argnums_t
  import torch.nn
  import textwrap
  from typing import Any, Callable, Optional, Tuple, Union
  import warnings
label_desc: Use image node_id 2 for calling a global function with example usage: warn_deprecated(api, new_api) without return types