class_docstr: Test MVTec AD Data Module.
class_docstr_tok: ["Test","MVTec","AD","Data","Module","."]
docstr: This test ensures that all splits are non-overlapping when split mode == from_test.
code: def test_non_overlapping_splits(self, make_data_module, dataset):
      """This test ensures that all splits are non-overlapping when split mode == from_test."""
      data_module = make_data_module(
          dataset=dataset, val_split_mode="from_test"
      )
      assert (
          len(
              set(
                  data_module.test_data.samples["image_path"].values
              ).intersection(
                  set(
                      data_module.train_data.samples[
                          "image_path"
                      ].values
                  )
              )
          )
          == 0
      ), "Found train and test split contamination"
      assert (
          len(
              set(
                  data_module.val_data.samples["image_path"].values
              ).intersection(
                  set(
                      data_module.test_data.samples["image_path"].values
                  )
              )
          )
          == 0
      ), "Found train and test split contamination"
  
imports: import os
  import numpy
  import pytest
  from anomalib.config import update_input_size_config
  from anomalib.data import Avenue, BTech, Folder, MVTec, ShanghaiTech, UCSDped, Visa, get_datamodule
  from anomalib.data.utils import DirType
  from anomalib.pre_processing.transforms import Denormalize, ToNumpy
  from tests.helpers.config import get_test_configurable_parameters
  from tests.helpers.dataset import TestDataset, get_dataset_path
label_desc: Use image node_id 3 for calling the TestDataModule obj's underlying member method code with example usage: obj.test_non_overlapping_splits(make_data_module, dataset) without return types