code: def snapshot_multiple_mpld3_plots(plot_filenames, output_folder):
      assert output_folder, "output_folder is required"
      if not os.path.exists(output_folder):
          os.makedirs(output_folder)
      pool = multiprocessing.Pool(multiprocessing.cpu_count())
      return pool.map(
          partial(
              snapshot_mpld3_plot,
              plot_filenames,
              **{"output_folder": output_folder},
          )
      )
  
file_path: mpld3/mpld3/tests/export.py
imports: import uuid
  import subprocess
  import mpld3
  import multiprocessing
  import os
  import diffimg
  import visualize_tests
  from functools import partial
label_desc: Use image node_id 4 for calling a global function with example usage: snapshot_multiple_mpld3_plots(plot_filenames, output_folder) and returns: pool