def check_qaqc(self, dataset):
<EOL>results = []<EOL>flag_variables = dataset.get_variables_by_attributes(flag_meanings=lambda x: x is not None)<EOL>for flag_variable in flag_variables:<EOL><INDENT>required_ctx = TestCtx(BaseCheck.HIGH, '<STR_LIT>'.format(flag_variable.name))<EOL>flag_values = getattr(flag_variable, '<STR_LIT>', None)<EOL>flag_masks = getattr(flag_variable, '<STR_LIT>', None)<EOL>required_ctx.assert_true(flag_values is not None or flag_masks is not None, '<STR_LIT>')<EOL>results.append(required_ctx.to_result())<EOL>recommended_ctx = TestCtx(BaseCheck.MEDIUM, '<STR_LIT>'.format(flag_variable.name))<EOL>standard_name = getattr(flag_variable, '<STR_LIT>', '<STR_LIT>')<EOL>recommended_ctx.assert_true(standard_name.endswith('<STR_LIT>'), '<STR_LIT>')<EOL>varattr = getattr(flag_variable, '<STR_LIT>', '<STR_LIT>')<EOL>recommended_ctx.assert_true(varattr != '<STR_LIT>', '<STR_LIT>'.format('<STR_LIT>'))<EOL>if hasattr(flag_variable, '<STR_LIT>'):<EOL><INDENT>recommended_ctx.assert_true(getattr(flag_variable, '<STR_LIT>', '<STR_LIT>') != '<STR_LIT>', '<STR_LIT>')<EOL><DEDENT>results.append(recommended_ctx.to_result())<EOL><DEDENT>return results<EOL>
byte boolean_flag_variable(timeSeries,time); //............................. A boolean flag variable, in which each bit of the flag can be a 1 or 0.
        boolean_flag_variable:standard_name= "" ; //................. RECOMMENDED - This attribute should include the standard name of the variable which this flag contributes plus the modifier: "status_flag" (for example, "sea_water_temperature status_flag"). See CF standard name modifiers.
        boolean_flag_variable:long_name = "" ; //.................... RECOMMENDED - Provide a descriptive, long name for this variable.
        boolean_flag_variable:flag_masks = ; //...................... REQUIRED    - Provide a comma-separated list describing the binary condition of the flags.
        boolean_flag_variable:flag_meanings = "" ; //................ REQUIRED    - Provide a comma-separated list of flag values that map to the flag_masks.
        boolean_flag_variable:references = "" ; //................... RECOMMENDED - Published or web-based references that describe the data or methods used to produce it.
        boolean_flag_variable:comment = "" ; //...................... RECOMMENDED - Add useful, additional information here.
int enumerated_flag_variable(timeSeries,time);  //...................... An enumerated flag variable, in which numeric values refer to defined, exclusive conditions.
        enumerated_flag_variable:standard_name= "" ; //.............. RECOMMENDED - This attribute should include the standard name of the variable which this flag contributes plus the modifier: "status_flag" (for example, "sea_water_temperature status_flag"). See CF standard name modifiers.
        enumerated_flag_variable:long_name = "" ; //................. RECOMMENDED - Provide a descriptive, long name for this variable.
        enumerated_flag_variable:flag_values = ; //.................. REQUIRED    - Provide a comma-separated list of flag values that map to the flag_meanings.
        enumerated_flag_variable:flag_meanings = "" ; //............. REQUIRED    - Provide a space-separated list of meanings corresponding to each of the flag_values
        enumerated_flag_variable:references = "" ; //................ RECOMMENDED - Published or web-based references that describe the data or methods used to produce it.
        enumerated_flag_variable:comment = "" ; //................... RECOMMENDED - Add useful, additional information here.