code: def test_create_dataset(
      self, args, data_args, expected_length, expected_region
  ):
      datalist = self._create_data(**data_args)
      deepgrow_datalist = create_dataset(
          datalist=datalist, output_dir=self.tempdir, **args
      )
      self.assertEqual(len(deepgrow_datalist), expected_length)
      if expected_region is not None:
          self.assertEqual(
              deepgrow_datalist[0]["region"], expected_region
          )
  
file_path: MONAI/tests/test_deepgrow_dataset.py
imports: from __future__ import annotations
  import os
  import shutil
  import tempfile
  import unittest
  import nibabel
  import numpy
  from parameterized import parameterized
  from monai.apps.deepgrow.dataset import create_dataset
  from monai.utils import set_determinism
label_desc: Use image node_id 3 for calling the TestCreateDataset obj's underlying member method code with example usage: obj.test_create_dataset(args, data_args, expected_length, expected_region) without return types