code: def test_create_from_dataset(synthetic_dataset_from_samples):
      """Tests if the image and mask files listed in the synthetic dataset exist, when instantiated from samples df."""
      synthetic_dataset = synthetic_dataset_from_samples
      assert all(
          Path(path).exists()
          for path in synthetic_dataset.samples.image_path
      )
      assert all(
          Path(path).exists()
          for path in synthetic_dataset.samples.mask_path
      )
  
file_path: anomalib/tests/pre_merge/datasets/test_synthetic_data.py
imports: from copy import copy, deepcopy
  from pathlib import Path
  import pytest
  from anomalib.data.folder import FolderDataset
  from anomalib.data.synthetic import SyntheticAnomalyDataset
  from anomalib.data.utils import get_transforms
  from tests.helpers.dataset import get_dataset_path
label_desc: Use image node_id 5 for calling a global function with example usage: test_create_from_dataset(synthetic_dataset_from_samples) without return types