def load_data(
        self, data: Optional[Any], parameters: Optional[LabelStudioParameters] = None
    ) -> Sequence[Mapping[str, Any]]:
        """Iterate through all tasks in exported data and construct train\test\val results."""
        if data and isinstance(data, dict):
            data_folder = data.get("data_folder")
            file_path = data.get("export_json")
            multi_label = data.get("multi_label", False)
            fs = get_filesystem(file_path)
            with fs.open(file_path) as f:
                _raw_data = json.load(f)
            results, test_results, classes, data_types, tag_types = _load_json_data(
                _raw_data, data_folder=data_folder, multi_label=multi_label
            )
            if self.training:
                self.parameters = LabelStudioParameters(
                    classes=classes,
                    data_types=data_types,
                    tag_types=tag_types,
                    multi_label=multi_label,
                    num_classes=len(classes),
                )
            else:
                self.parameters = parameters
            return test_results if self.testing else results
        return []
Iterate through all tasks in exported data and construct train	estal results.
src/flash/core/integrations/labelstudio/input.py