input: Write a function to ensure that only integer inputs are accepted for calculating the square root. If the input is not an integer, raise a TypeError with a descriptive message. Otherwise, return the square root of the input value.
  
  def square_root(x):
      if not isinstance(x, int):
          raise TypeError('Input must be an integer')
      return x**0.5
  
  assert square_root(4)==2.0
  assert square_root(9)==3.0
  try:
      square_root('a')
      assert False, 'Expected TypeError'
  except TypeError:
      pass
output: def square_root(x):
      if not isinstance(x, int):
          raise TypeError('Input must be an integer')
      return x**0.5