code: def _copy_metadata(src_func, tgt_func):
      """Replicates metadata of the function. Returns target function."""
      functools.update_wrapper(tgt_func, src_func)
      tgt_func.__wrapped__ = src_func  # Python2 compatibility.
      return tgt_func
  
file_path: catboost/contrib/python/matplotlib/py2/matplotlib/testing/__init__.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import functools
  import warnings
  import matplotlib
  from matplotlib import cbook
label_desc: Use image node_id 2 for calling a global function with example usage: _copy_metadata(src_func, tgt_func) and returns: tgt_func