<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def effect_info(self, mechanism, purview):
 """Return the effect information for a mechanism over a purview."""

        return repertoire_distance(
            Direction.EFFECT,
            self.effect_repertoire(mechanism, purview),
            self.unconstrained_effect_repertoire(purview)
        )