input: from typing import List
  
  def raise_exception_if_not_int(numbers: List[int]) -> None:
      """ Check if all elements in the given list are integers. If any element is not an integer, raise a TypeError.
      >>> raise_exception_if_not_int([1, 2, 3])
      >>> raise_exception_if_not_int([1, '2', 3])
      Traceback (most recent call last):
          ...
      TypeError: Input must be a list of integers
      """
output:     for num in numbers:
          if not isinstance(num, int):
              raise TypeError("Input must be a list of integers")