code: def make_synthetic_dataset():
      """Create synthetic anomaly dataset from folder dataset."""
  
      def make():
          folder_dataset = get_folder_dataset()
          synthetic_dataset = SyntheticAnomalyDataset.from_dataset(
              folder_dataset
          )
          return synthetic_dataset
  
      return make
  
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 2 for calling a global function with example usage: make_synthetic_dataset() and returns: make, synthetic_dataset