def check_profile_id(self, dataset):
results = []<EOL>exists_ctx = TestCtx(BaseCheck.MEDIUM, '<STR_LIT>')<EOL>profile_ids = dataset.get_variables_by_attributes(cf_role='<STR_LIT>')<EOL>exists_ctx.assert_true(profile_ids, '<STR_LIT>')<EOL>if not profile_ids:<EOL><INDENT>return exists_ctx.to_result()<EOL><DEDENT>results.append(exists_ctx.to_result())<EOL>test_ctx = TestCtx(BaseCheck.MEDIUM, '<STR_LIT>'.format(profile_ids[<NUM_LIT:0>].name))<EOL>test_ctx.assert_true(<EOL>getattr(profile_ids[<NUM_LIT:0>], '<STR_LIT>', '<STR_LIT>') != "<STR_LIT>",<EOL>"<STR_LIT>"<EOL>)<EOL>results.append(test_ctx.to_result())<EOL>return results<EOL>
Checks that if a variable exists for the profile id it has the appropriate attributes

:param netCDF4.Dataset dataset: An open netCDF dataset