def IsGzippedFile(path):
  """Check if the given file is gzipped. (Not 100% accurate)

  Args:
    path: path to the file to check.

  Returns:
    True if it looks like a gzipped file.
  """
  with open(path, 'rb') as f:
    return f.read(2) == b'\x1f\x8b'