code: def set_memmap_min_size(memmap_min_size):
      """Set the minimum size for memmaping of arrays for parallel processing.
  
      Parameters
      ----------
      memmap_min_size : str or None
          Threshold on the minimum size of arrays that triggers automated memory
          mapping for parallel processing, e.g., '1M' for 1 megabyte.
          Use None to disable memmaping of large arrays.
      """
      _validate_type(memmap_min_size, (str, None), "memmap_min_size")
      if memmap_min_size is not None:
          if memmap_min_size[-1] not in ["K", "M", "G"]:
              raise ValueError(
                  "The size has to be given in kilo-, mega-, or "
                  f"gigabytes, e.g., 100K, 500M, 1G, got {repr(memmap_min_size)}"
              )
  
      set_config("MNE_MEMMAP_MIN_SIZE", memmap_min_size, set_env=False)
  
imports: import atexit
  import json
  import multiprocessing
  import os
  import os.path
  import platform
  import shutil
  import subprocess
  import sys
  import tempfile
  from functools import lru_cache, partial
  from importlib import import_module
  from pathlib import Path
  from urllib.error import URLError
  from urllib.request import urlopen
  from packaging.version import parse
  from ._logging import logger, warn
  from .check import _check_fname, _check_option, _check_qt_version, _validate_type
  from .docs import fill_doc
  from .misc import _pl
label_desc: Use image node_id 2 for calling a global function with example usage: set_memmap_min_size(memmap_min_size) without return types