code: def _mosaik_args_from_config(config):
      
      multi_mappers = config["algorithm"].get("multiple_mappers", True)
      multi_flags = ["-m", "all"] if multi_mappers else ["-m", "unique"]
      error_flags = ["-mm", "2"]
      num_cores = config["algorithm"].get("num_cores", 1)
      core_flags = ["-p", str(num_cores)] if num_cores > 1 else []
      return core_flags + multi_flags + error_flags
docs: Configurable high level options for mosaik.