docstr: Tests if test and and val splits are equal and non-overlapping with train.
code: def test_equal_splits(
      self, make_data_module, dataset, test_split_mode
  ):
      """Tests if test and and val splits are equal and non-overlapping with train."""
      data_module = make_data_module(
          dataset,
          test_split_mode=test_split_mode,
          val_split_mode="same_as_test",
      )
      train_samples = data_module.train_data.samples
      val_samples = data_module.val_data.samples
      test_samples = data_module.test_data.samples
      assert (
          len(
              set(train_samples.image_path).intersection(
                  set(test_samples.image_path)
              )
          )
          == 0
      )
      assert len(
          set(val_samples.image_path).intersection(
              set(test_samples.image_path)
          )
      ) == len(val_samples)
  
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 2 for calling the TestSubsetSplitting obj's underlying member method code with example usage: obj.test_equal_splits(make_data_module, dataset, test_split_mode) without return types