def load(self, d3mds):
X, y = d3mds.get_data()<EOL>resource_columns = d3mds.get_related_resources(self.data_modality)<EOL>for resource_column in resource_columns:<EOL><INDENT>X = self.load_resources(X, resource_column, d3mds)<EOL><DEDENT>context = self.get_context(X, y)<EOL>return Dataset(d3mds.dataset_id, X, y, context=context)<EOL>
Load X, y and context from D3MDS.