def check_timeseries_id(self, dataset):
timeseries_ids = dataset.get_variables_by_attributes(cf_role='<STR_LIT>')<EOL>if not timeseries_ids:<EOL><INDENT>return<EOL><DEDENT>test_ctx = TestCtx(BaseCheck.MEDIUM, '<STR_LIT>')<EOL>timeseries_variable = timeseries_ids[<NUM_LIT:0>]<EOL>test_ctx.assert_true(<EOL>getattr(timeseries_variable, '<STR_LIT>', '<STR_LIT>') != "<STR_LIT>",<EOL>"<STR_LIT>"<EOL>)<EOL>return test_ctx.to_result()<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