def __getitem__()

in dataflux_pytorch/dataflux_mapstyle_dataset.py [0:0]


    def __getitem__(self, idx):
        if self.storage_client is None:
            self.storage_client = storage.Client(project=self.project_name)
        return self.data_format_fn(
            dataflux_core.download.download_single(
                storage_client=self.storage_client,
                bucket_name=self.bucket_name,
                object_name=self.objects[idx][0],
                retry_config=self.config.download_retry_config,
            ))