code: def add_mapping(self):
      group = SettingsGroup()
      group.append(
          "local_directory",
          Text(
              "Local root path",
              get_default_image_directory(),
              doc="""\
  Enter the path to files on this computer. This is the root path on the
  local machine (i.e., the computer setting up the batch files).
  
  For instance, a Windows machine might access files images by mounting the file system using a drive
  letter, like this:
  
  ``Z:\your_data\images``
  
  and the cluster computers access the same file system like this:
  
  ``/server_name/your_name/your_data/images``
  
  In this case, since the ``your_data\images`` portion of the path is
  the same for both, the local root path is the portion prior, i.e.,
  ``Z:\`` and similarly for the cluster root path, i.e.,
  ``/server_name/your_name/``.
  
  If **CreateBatchFiles** finds any pathname that matches the local root path
  at the beginning, it will replace that matching portion with the cluster root path.
  
  For example, if you have mapped the remote cluster machine like this:
  
  ``Z:\your_data\images``
  
  (on a Windows machine, for instance) and the cluster machine sees the same folder like this:
  
  ``/server_name/your_name/your_data/images``
  
  you would enter ``Z:\`` here for the local root path and ``/server_name/your_name/`` for the
  cluster root path in the next setting.""",
          ),
      )
  
      group.append(
          "remote_directory",
          Text(
              "Cluster root path",
              get_default_image_directory(),
              doc="""\
  Enter the path to files on the cluster. This is the cluster root path,
  i.e., how the cluster machine sees the top-most folder where your
  input/output files are stored.
  
  For instance, a Windows machine might access files images by mounting the file system using a drive
  letter, like this:
  
  ``Z:\your_data\images``
  
  and the cluster computers access the same file system like this:
  
  ``/server_name/your_name/your_data/images``
  
  In this case, since the ``your_data\images`` portion of the path is
  the same for both, the local root path is the portion prior, i.e.,
  ``Z:\`` and similarly for the cluster root path, i.e.,
  ``/server_name/your_name/``.
  
  If **CreateBatchFiles** finds any pathname that matches the local root path
  at the beginning, it will replace that matching portion with the cluster root path.
  
  For example, if you have mapped the remote cluster machine like this:
  
  ``Z:\your_data\images``
  
  (on a Windows machine, for instance) and the cluster machine sees the same folder like this:
  
  ``/server_name/your_name/your_data/images``
  
  you would enter ``Z:\`` in the previous setting for the local root
  path and ``/server_name/your_name/`` here for the cluster root path.""",
          ),
      )
      group.append(
          "remover",
          RemoveSettingButton(
              "", "Remove this path mapping", self.mappings, group
          ),
      )
      group.append("divider", Divider(line=False))
      self.mappings.append(group)
  
imports: import logging
  import os
  import re
  import sys
  import zlib
  import numpy
  from cellprofiler_core.constants.measurement import F_BATCH_DATA_H5
  from cellprofiler_core.measurement import Measurements
  from cellprofiler_core.module import Module
  from cellprofiler_core.pipeline import Pipeline
  from cellprofiler_core.preferences import get_absolute_path
  from cellprofiler_core.preferences import get_default_image_directory
  from cellprofiler_core.preferences import get_default_output_directory
  from cellprofiler_core.preferences import get_headless
  from cellprofiler_core.preferences import set_default_image_directory
  from cellprofiler_core.preferences import set_default_output_directory
  from cellprofiler_core.setting import Binary
  from cellprofiler_core.setting import Divider
  from cellprofiler_core.setting import Setting
  from cellprofiler_core.setting import SettingsGroup
  from cellprofiler_core.setting import ValidationError
  from cellprofiler_core.setting.do_something import DoSomething
  from cellprofiler_core.setting.do_something import RemoveSettingButton
  from cellprofiler_core.setting.text import Text, Integer
  from cellprofiler_core.workspace import Workspace
  import cellprofiler
label_desc: Use image node_id 3 for calling the CreateBatchFiles obj's underlying member method code with example usage: obj.add_mapping() without return types