input: Write a function to translate the given JavaScript code into Python code. The function should accept a list of integers and print each element of the list multiplied by 2. If the list is empty, the function should not print anything.
  assert translate_code([1, 2, 3, 4, 5])
  # Output should be:
  # 2
  # 4
  # 6
  # 8
  # 10
  assert translate_code([])
  # Output should be an empty line
output: def translate_code(lst):
      for num in lst:
          print(num * 2)