def METHOD_NAME(frame_file, qaprod_dir=None, output_dir=None):
    """ Derive the QA filename from an input frame file
    Args:
        frame_file: str
        output_dir: str, optional   Over-ride default output path
        qa_dir: str, optional   Over-ride default QA
    Returns:
    """
    frame_file = checkgzip(frame_file)
    frame_meta = read_meta_frame(frame_file)
    night = frame_meta['NIGHT'].strip()
    camera = frame_meta['CAMERA'].strip()
    expid = int(frame_meta['EXPID'])
    if frame_meta['FLAVOR'] in ['flat', 'arc']:
        qatype = 'qa_calib'
    else:
        qatype = 'qa_data'
    # Name
    qafile = findfile(qatype, night=night, camera=camera, expid=expid,
                      outdir=output_dir, qaprod_dir=qaprod_dir)
    # Return
    return qafile, qatype