docstr: The test set should not contain anomalous samples if no abnormal_dir provided and split mode is from_dir.
code: def test_abnormal_dir_omitted_from_dir(self, make_data_module):
      """The test set should not contain anomalous samples if no abnormal_dir provided and split mode is from_dir."""
      data_module = make_data_module(
          dataset="folder",
          test_split_mode="from_dir",
          abnormal_dir=None,
      )
      # check if we can retrieve a sample from every subset
      next(iter(data_module.train_dataloader()))
      next(iter(data_module.test_dataloader()))
      next(iter(data_module.val_dataloader()))
      # the test set should not contain anomalous samples, because there aren't any available
      assert not data_module.test_data.has_anomalous
  
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 TestSubsetSplitting obj's underlying member method code with example usage: obj.test_abnormal_dir_omitted_from_dir(make_data_module) without return types