import imghdr


def check_bmp(input_file_name):
    """ Check if filename is a BMP file
        :param input_file_name: input file name
        :type input_file_name:  string
        :return whether the file is .bmp
        :rtype boolean
    """
    return 'bmp' == imghdr.what(input_file_name)