input: Write a python function to generate a list of numbers from 0 to n-1 using list comprehension.
  assert time_function(5) == [0, 1, 2, 3, 4]
  assert time_function(0) == []
  assert time_function(10) == [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
output: def time_function(n):
      return [i for i in range(n)]