def METHOD_NAME(func, tag, default=None):
    """
    Function returns the tags from the model that function `func` is bound to.
    Parameters
    ----------
    func: object
        Function to check whether the object it is bound to has a _get_tags
        attribute, and return tags from it.
    tag: str
        Tag that will be returned if exists
    default: object  (default = None)
        Value that will be returned if tags cannot be fetched.
    """
    tags_fn = getattr(getattr(func, "__self__", None), "_get_tags", None)
    if tags_fn is not None:
        tag_value = tags_fn().get(tag)
        result = tag_value if tag_value is not None else default
        return result
    return default