code: def synthetic_dataset_from_samples():
      """Create synthetic anomaly dataset by passing a samples dataframe."""
      folder_dataset = get_folder_dataset()
      transform = get_transforms(image_size=(256, 256))
      synthetic_dataset = SyntheticAnomalyDataset(
          task=folder_dataset.task,
          transform=transform,
          source_samples=folder_dataset.samples,
      )
      return synthetic_dataset
  
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 3 for calling a global function with example usage: synthetic_dataset_from_samples() and returns: synthetic_dataset