code: def add_label(obj, name, **kwargs):
      
      labels = obj.__dict__.setdefault('_labels', dict())
      labels[name] = kwargs
      return obj
docs: Labels an object such that it can later be checked with
      :class:`get_label()`.
  
      :type  obj: object
      :param obj: The object that is labeled.
      :type  name: str
      :param name: A label.
      :type  kwargs: dict
      :param kwargs: Optional values to store with the label.
      :rtype:  object
      :return: The labeled function.