code: def annotate(**kwargs):
      """Python 3 compatible function annotation for Python 2."""
      if not kwargs:
          raise ValueError(
              "annotations must be provided as keyword arguments"
          )
  
      def dec(f):
          if hasattr(f, "__annotations__"):
              for k, v in kwargs.items():
                  f.__annotations__[k] = v
          else:
              f.__annotations__ = kwargs
          return f
  
      return dec
  
file_path: catboost/contrib/python/ipython/py2/IPython/utils/py3compat.py
imports: import functools
  import os
  import sys
  import re
  import shutil
  import types
  import platform
  from .encoding import DEFAULT_ENCODING
label_desc: Use image node_id 10 for calling a global function with example usage: annotate() and returns: dec, f