code: def get_label(obj, name):
      
      labels = obj.__dict__.get('_labels')
      if labels is None:
          return None
      return labels.get(name)
docs: Checks whether an object has the given label attached (see
      :class:`add_label()`) and returns the associated options.
  
      :type  obj: object
      :param obj: The object to check for the label.
      :type  name: str
      :param name: A label.
      :rtype:  dict or None
      :return: The optional values if the label is attached, None otherwise.