code: def test_create_synthetic_dataset(make_synthetic_dataset):
      """Tests if the image and mask files listed in the synthetic dataset exist."""
      synthetic_dataset = make_synthetic_dataset()
      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 4 for calling a global function with example usage: test_create_synthetic_dataset(make_synthetic_dataset) without return types