'Is the `dataset_assoc` datatype equal to the registered datatype `class_str`?'

def eq_datatype(self, dataset_assoc, class_str):

    comparison_class = self.app.datatypes_registry.get_datatype_class_by_name(class_str)
    return (comparison_class and (dataset_assoc.datatype.__class__ == comparison_class))
