def METHOD_NAME(distr, method):
    """Check whether distr has capability of method.
    Parameters
    ----------
    distr : BaseDistribution object
    method : str
        method name to check
    Returns
    -------
    whether distr has capability method, according to tags
    capabilities:approx and capabilities:exact
    """
    approx_methods = distr.get_tag("capabilities:approx")
    exact_methods = distr.get_tag("capabilities:exact")
    return method in approx_methods or method in exact_methods