def is_toa5(record):
    """ Utility function to check if a supplied record (as generated by hievpy.search) is in TOA5 format

    Input
    -----
    Required
    - record: record object returned by the search function

    Returns
    -------
    True or False

    """

    if record['format'] == 'TOA5' and record['file_processing_status'] == 'RAW':
        return True

    return False