def _get_firmware_file(path):
    """Gets the raw firmware file

    Gets the raw firmware file from the extracted directory structure
    :param path: the directory structure to search for
    :returns: the raw firmware file with the complete path
    """
    for dirpath, dirnames, filenames in os.walk(path):
        for filename in filenames:
            file_name, file_ext = os.path.splitext(os.path.basename(filename))
            if RAW_FIRMWARE_EXTNS in file_ext:
                # return filename
                return os.path.join(dirpath, filename)
dataset/ETHPy150Open openstack/proliantutils/proliantutils/ilo/firmware_controller.py/_get_firmware_file/swapped operands of `in`