input: Write a function named 'raise_exception_if_not_integer' that calculates the square root of a given input 'x'. If 'x' is not an integer, the function should raise a 'TypeError' with the message 'Input must be an integer'. The function should return the square root of 'x' if it is an integer.
  assert raise_exception_if_not_integer(4)==2.0
  assert raise_exception_if_not_integer(9)==3.0
  try:
      raise_exception_if_not_integer('4')
  except TypeError as e:
      assert str(e)=='Input must be an integer'
  try:
      raise_exception_if_not_integer(4.0)
  except TypeError as e:
      assert str(e)=='Input must be an integer'
  assert raise_exception_if_not_integer(16)==4.0
output: def raise_exception_if_not_integer(x):
      if not isinstance(x, int):
          raise TypeError('Input must be an integer')
      return x ** 0.5