code: def test__sample_unseen_and_valid() -> None:
      with pytest.warns(
          UserWarning, match="Absolute file paths like /file1"
      ):
          assert not api_workflow_datasources._sample_unseen_and_valid(
              sample=DatasourceRawSamplesDataRow(
                  fileName="/file1", readUrl="url1"
              ),
              relevant_filenames_file_name=None,
              listed_filenames=set(),
          )
  
      with pytest.warns(UserWarning, match="Using dot notation"):
          assert not api_workflow_datasources._sample_unseen_and_valid(
              sample=DatasourceRawSamplesDataRow(
                  fileName="./file1", readUrl="url1"
              ),
              relevant_filenames_file_name=None,
              listed_filenames=set(),
          )
  
      with pytest.warns(UserWarning, match="Duplicate filename file1"):
          assert not api_workflow_datasources._sample_unseen_and_valid(
              sample=DatasourceRawSamplesDataRow(
                  fileName="file1", readUrl="url1"
              ),
              relevant_filenames_file_name=None,
              listed_filenames={"file1"},
          )
  
      assert api_workflow_datasources._sample_unseen_and_valid(
          sample=DatasourceRawSamplesDataRow(
              fileName="file1", readUrl="url1"
          ),
          relevant_filenames_file_name=None,
          listed_filenames=set(),
      )
  
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 1 for calling a global function with example usage: test__sample_unseen_and_valid() without return types