input: Write a python function to compress a string using gzip.
  assert compress_string("This is a sample string to compress.") == gzip.compress("This is a sample string to compress.".encode('utf-8'))
  assert compress_string("Another example.") == gzip.compress("Another example.".encode('utf-8'))
  assert compress_string("Python is awesome!") == gzip.compress("Python is awesome!".encode('utf-8'))
output: import gzip
  
  def compress_string(s: str) -> bytes:
      return gzip.compress(s.encode('utf-8'))