def is_zstd(path):
    """Test if a file is compressed using zstd using its magic marker bytes
    """
    with open(path, 'rb') as f:
        marker_bytes = f.read(4)
    return marker_bytes == b'(\xb5/\xfd'
