code: def test_load_v7():
      file = tests.frontend.modules.get_test_resources_directory(
          "createbatchfiles/v7.pipeline"
      )
      with open(file, "r") as fd:
          data = fd.read()
  
      pipeline = cellprofiler_core.pipeline.Pipeline()
      pipeline.loadtxt(six.moves.StringIO(data))
      assert len(pipeline.modules()) == 1
      module = pipeline.modules()[0]
      assert isinstance(
          module, cellprofiler.modules.createbatchfiles.CreateBatchFiles
      )
      assert module.wants_default_output_directory
      assert module.custom_output_directory.value == r"C:\foo\bar"
      assert not module.remote_host_is_windows
      assert not module.distributed_mode
      assert module.default_image_directory == r"C:\bar\baz"
      assert module.revision == 0
      assert not module.from_old_matlab
      assert len(module.mappings) == 1
      mapping = module.mappings[0]
      assert mapping.local_directory == r"\\argon-cifs\imaging_docs"
      assert mapping.remote_directory == r"/imaging/docs"
  
file_path: CellProfiler/tests/frontend/modules/test_createbatchfiles.py
imports: import sys
  import pytest
  import six.moves
  import cellprofiler_core.module
  import cellprofiler.modules.createbatchfiles
  import cellprofiler_core.pipeline
  import cellprofiler_core.setting
  import tests.frontend.modules
label_desc: Use image node_id 2 for calling a global function with example usage: test_load_v7() without return types