code: def dummy_datamodule() -> MVTec:
      datamodule = MVTec(
          root=get_dataset_path("MVTec"),
          category="bottle",
          image_size=32,
      )
      datamodule.setup()
  
      _, train_subset = random_split(
          dataset=datamodule.train_data,
          split_ratio=0.1,
          label_aware=True,
      )
      _, test_subset = random_split(
          dataset=datamodule.test_data,
          split_ratio=0.1,
          label_aware=True,
      )
  
      datamodule.train_data = train_subset
      datamodule.test_data = test_subset
  
      return datamodule
  
file_path: anomalib/tests/pre_merge/utils/callbacks/export_callback/test_export.py
imports: import os
  import tempfile
  import pytest
  import pytorch_lightning
  from pytorch_lightning.callbacks.early_stopping import EarlyStopping
  from anomalib.data.mvtec import MVTec
  from anomalib.data.utils import random_split
  from anomalib.deploy import ExportMode
  from anomalib.utils.callbacks.export import ExportCallback
  from tests.helpers.config import get_test_configurable_parameters
  from tests.helpers.dataset import get_dataset_path
  from tests.pre_merge.utils.callbacks.export_callback.dummy_lightning_model import DummyLightningModule
label_desc: Use image node_id 1 for calling a global function with example usage: dummy_datamodule() and returns: datamodule