def get_mime(filepath):
    """
    Use python-magic to get the mime type of a file.

    Args:
        filepath (str): Path to the file to be sniffed by magic

    Returns:
        str: Returns a string representing the mime type of the file.
    """
    import magic
    return magic.from_file(filepath, mime=True)
