input: 
  from typing import Tuple
  import time
  
  def compare_heuristics(algorithm1_module_path: str, algorithm2_module_path: str, data1: any, data2: any) -> Tuple[float, float]:
      """Evaluate and compare the performance of two different heuristics algorithms.
      Returns the elapsed time for each algorithm as a tuple (time1, time2).
      >>> compare_heuristics('heuristics_algorithm1', 'heuristics_algorithm2', data1, data2)
      (0.0012, 0.0024)
      """
      import importlib
      algorithm1 = importlib.import_module(algorithm1_module_path)
      algorithm2 = importlib.import_module(algorithm2_module_path)
  
      # Evaluate algorithm1
      start = time.time()
      result1 = algorithm1.run(data1)
      end = time.time()
      time1 = end - start
  
      # Evaluate algorithm2
      start = time.time()
      result2 = algorithm2.run(data2)
      end = time.time()
      time2 = end - start
  
      return (time1, time2)
  
output:     return (time1, time2)