code: def concatenate_datasets(
      datasets: Sequence[AnomalibDataset],
  ) -> AnomalibDataset:
      """Concatenate multiple datasets into a single dataset object.
  
      Args:
          datasets (Sequence[AnomalibDataset]): Sequence of at least two datasets.
  
      Returns:
          AnomalibDataset: Dataset that contains the combined samples of all input datasets.
      """
      concat_dataset = datasets[0]
      for dataset in datasets[1:]:
          concat_dataset += dataset
      return concat_dataset
  
file_path: anomalib/src/anomalib/data/utils/split.py
imports: from __future__ import annotations
  import math
  import warnings
  from enum import Enum
  from typing import TYPE_CHECKING, Sequence
  import torch
label_desc: Use image node_id 1 for calling a global function with example usage: concatenate_datasets(datasets) and returns: concat_dataset