class_docstr: Test MVTec AD Data Module.
class_docstr_tok: ["Test","MVTec","AD","Data","Module","."]
docstr: This test ensures that val and test split are equal when split mode == same_as_test.
code: def test_equal_splits(self, make_data_module, dataset):
      """This test ensures that val and test split are equal when split mode == same_as_test."""
      data_module = make_data_module(
          dataset=dataset, val_split_mode="same_as_test"
      )
      assert all(
          data_module.val_data.samples["image_path"].values
          == data_module.test_data.samples["image_path"].values
      )
  
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 4 for calling the TestDataModule obj's underlying member method code with example usage: obj.test_equal_splits(make_data_module, dataset) without return types