code: def time_emd(emd_type, data):
      
  
      emd = {
          'cause': _CAUSE_EMD,
          'effect': pyphi.subsystem.effect_emd,
          'hamming': pyphi.utils.hamming_emd
      }[emd_type]
  
      def statement():
          for (d1, d2) in data:
              emd(d1, d2)
  
      results = timeit.repeat(statement, number=NUMBER, repeat=REPEAT)
  
      return min(results)
docs: Time an EMD command with the given data as arguments