code: def test_list_datasource_permissions__error(
      self, mocker: MockerFixture
  ) -> None:
      client = ApiWorkflowClient(token="abc", dataset_id="dataset-id")
      client._datasources_api.verify_datasource_by_dataset_id = (
          mocker.MagicMock(
              return_value=DatasourceConfigVerifyData(
                  canRead=True,
                  canWrite=True,
                  canList=False,
                  canOverwrite=True,
                  errors=DatasourceConfigVerifyDataErrors(
                      canRead=None,
                      canWrite=None,
                      canList="error message",
                      canOverwrite=None,
                  ),
              ),
          )
      )
      assert client.list_datasource_permissions() == {
          "can_read": True,
          "can_write": True,
          "can_list": False,
          "can_overwrite": True,
          "errors": {
              "can_list": "error message",
          },
      }
  
imports: import pytest
  import tqdm
  from pytest_mock import MockerFixture
  from lightly.api import ApiWorkflowClient, api_workflow_datasources
  from lightly.openapi_generated.swagger_client.models import DatasourceConfigAzure, DatasourceConfigGCS, DatasourceConfigLOCAL, DatasourceConfigS3, DatasourceConfigS3DelegatedAccess, DatasourcePurpose, DatasourceRawSamplesDataRow
  from lightly.openapi_generated.swagger_client.models.datasource_config_verify_data import DatasourceConfigVerifyData
  from lightly.openapi_generated.swagger_client.models.datasource_config_verify_data_errors import DatasourceConfigVerifyDataErrors
  from lightly.openapi_generated.swagger_client.models.datasource_processed_until_timestamp_response import DatasourceProcessedUntilTimestampResponse
  from lightly.openapi_generated.swagger_client.models.datasource_raw_samples_data import DatasourceRawSamplesData
label_desc: Use image node_id 20 for calling the TestDatasourcesMixin obj's underlying member method code with example usage: obj.test_list_datasource_permissions__error(mocker) without return types