code: def phi(self, mechanism, purview):
          
          return min(self.phi_cause_mip(mechanism, purview),
                     self.phi_effect_mip(mechanism, purview))
docs: Return the |small_phi| of a mechanism over a purview.