input: Write a function that takes a list of numbers from 1 to 8 and prints their cubic values. The function should iterate through the list and print the cube of each number. Ensure the list contains exactly the numbers from 1 to 8.
  
  
  assert calculate_cubes([1, 2, 3, 4, 5, 6, 7, 8]) == [1, 8, 27, 64, 125, 216, 343, 512]
  assert calculate_cubes([3, 1, 2, 4, 5, 6, 7, 8]) == [27, 1, 8, 64, 125, 216, 343, 512]
  assert calculate_cubes([1, 2, 3, 5, 6, 7, 8]) == "Invalid list, must contain exactly the numbers 1 to 8"
  assert calculate_cubes([1, 2, 3, 4, 5, 6, 7, 8, 9]) == "Invalid list, must contain exactly the numbers 1 to 8"
  assert calculate_cubes([]) == "Invalid list, must contain exactly the numbers 1 to 8"
  
output: def calculate_cubes(numbers):
      if sorted(numbers) != list(range(1, 9)):
          return "Invalid list, must contain exactly the numbers 1 to 8"
      return [num ** 3 for num in numbers]