def METHOD_NAME(self):
    """
    Validates the dataset name is the same in the xif file and in the schema file
    """
    def get_dataset_from_xif(xif_file_path: str) -> List[str]:
        with open(xif_file_path) as xif_file:
            xif_content = xif_file.read()
            dataset = re.findall('dataset[ ]?=[ ]?(["a-zA-Z_0-9]+)', xif_content)
        if dataset:
            return [dataset_name.strip('"') for dataset_name in dataset]
        return []
    xif_file_path = get_files_in_dir(
        os.path.dirname(self.file_path), ["xif"], False
    )
    if xif_file_path and self.schema_content:
        xif_datasets = set(get_dataset_from_xif(xif_file_path[0]))
        schema_datasets = self.schema_content.keys()
        if len(xif_datasets) == len(schema_datasets) and len(xif_datasets) >= 1:
            all_exist = all(dataset in schema_datasets for dataset in xif_datasets)
            if all_exist:
                return True
    error_message, error_code = Errors.modeling_rule_schema_xif_dataset_mismatch()
    if self.handle_error(error_message, error_code, file_path=self.file_path):
        self._is_valid = False
        return False