<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def competence(s):
 """ The competence function for MatrixMetropolis """

        # MatrixMetropolis handles the Wishart family, which are valued as
        # _symmetric_ matrices.
        if any([isinstance(s, cls)
                for cls in [distributions.Wishart, distributions.WishartCov]]):
            return 2
        else:
            return 0