def fetch_file_type(node, default_value):
    """Return file type from *node*.

    :param node: :class:`nuke.Node` instance.

    :param default_value: Default value to return if no file type
        is set.

    :return: File type value.

    """
    value = node["file_type"].value()
    return value.strip() or default_value