docs: def check_qaqc(self, dataset):
          '''
          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.
          '''
          # Check the qaqc variables to ensure they are good
          results = []
  
          flag_variables = dataset.get_variables_by_attributes(flag_meanings=lambda x: x is not None)
          for flag_variable in flag_variables:
              required_ctx = TestCtx(BaseCheck.HIGH, 'Required attributes for flag variable {}'.format(flag_variable.name))
              flag_values = getattr(flag_variable, 'flag_values', None)
              flag_masks = getattr(flag_variable, 'flag_masks', None)
              required_ctx.assert_true(flag_values is not None or flag_masks is not None, 'flag variable must define either flag_values or flag_masks')
              results.append(required_ctx.to_result())
  
              recommended_ctx = TestCtx(BaseCheck.MEDIUM, 'Recommended attributes for flag variable {}'.format(flag_variable.name))
              standard_name = getattr(flag_variable, 'standard_name', '')
              recommended_ctx.assert_true(standard_name.endswith(' status_flag'), 'The standard_name attribute should end with status_flag')
  
              varattr = getattr(flag_variable, 'long_name', '')
              recommended_ctx.assert_true(varattr != '', 'The {} attribute should exist and not be empty'.format('long_name'))
  
              if hasattr(flag_variable, 'comment'):
                  recommended_ctx.assert_true(getattr(flag_variable, 'comment', '') != '', 'comment attribute should not be empty if specified')
  
              results.append(recommended_ctx.to_result())
          return results