def check_timeseries_id(self, dataset):
results = []<EOL>required_ctx = TestCtx(BaseCheck.HIGH, '<STR_LIT>')<EOL>recommended_ctx = TestCtx(BaseCheck.MEDIUM, '<STR_LIT>')<EOL>timeseries_ids = dataset.get_variables_by_attributes(cf_role='<STR_LIT>')<EOL>required_ctx.assert_true(timeseries_ids, '<STR_LIT>')<EOL>results.append(required_ctx.to_result())<EOL>if not timeseries_ids:<EOL><INDENT>return results<EOL><DEDENT>timevar = util.get_time_variable(dataset)<EOL>nc_timevar = dataset.variables[timevar]<EOL>time_dimensions = nc_timevar.dimensions<EOL>timeseries_variable = timeseries_ids[<NUM_LIT:0>]<EOL>dims = timeseries_variable.dimensions<EOL>required_ctx.assert_true(<EOL>time_dimensions and time_dimensions[<NUM_LIT:0>] == dims[<NUM_LIT:0>],<EOL>'<STR_LIT>'.format(timeseries_variable.name)<EOL>)<EOL>recommended_ctx.assert_true(<EOL>getattr(timeseries_variable, '<STR_LIT>', '<STR_LIT>') != "<STR_LIT>",<EOL>"<STR_LIT>"<EOL>)<EOL>results.append(recommended_ctx.to_result())<EOL>return results<EOL>
Checks that if a variable exists for the time series id it has the appropriate attributes

:param netCDF4.Dataset dataset: An open netCDF dataset