input: Write a function to evaluate and compare the performance of two different heuristics algorithms. The function should take two data inputs and use the imported heuristics_algorithm1 and heuristics_algorithm2 to run the algorithms on these data inputs. It should measure the time taken by each algorithm and print which algorithm is faster or if they have the same performance time.
  import time
  import heuristics_algorithm1
  import heuristics_algorithm2
  
  def compare_heuristics(data1, data2):
      #Evaluate and compare the performance of two different heuristics algorithms
      start = time.time()
      result1 = heuristics_algorithm1.run(data1)
      end = time.time()
      time1 = end - start
  
      start = time.time()
      result2 = heuristics_algorithm2.run(data2)
      end = time.time()
      time2 = end - start
  
      if time1 < time2:
          print("Algorithm 1 is faster than algorithm 2")
      elif time2 < time1:
          print("Algorithm 2 is faster than algorithm 1")
      else:
          print("Both algorithms have the same performance time")
  
  assert compare_heuristics(data1, data2) is None
  assert compare_heuristics(data2, data1) is None
  assert compare_heuristics(data1, data1) is None
  assert compare_heuristics(data2, data2) is None
output: def compare_heuristics(data1, data2):
      start = time.time()
      result1 = heuristics_algorithm1.run(data1)
      end = time.time()
      time1 = end - start
  
      start = time.time()
      result2 = heuristics_algorithm2.run(data2)
      end = time.time()
      time2 = end - start
  
      if time1 < time2:
          print("Algorithm 1 is faster than algorithm 2")
      elif time2 < time1:
          print("Algorithm 2 is faster than algorithm 1")
      else:
          print("Both algorithms have the same performance time")