code: def black_wrapper(writeback):
      """Helper function to invoke black programatically."""
  
      check = [] if writeback else ["--check"]
      sys.argv[1:] = check + ROOT_DIR
  
      import black
  
      black.main()
  
file_path: imageio/tasks/test.py
imports: import os
  import sys
  import subprocess
  import webbrowser
  from invoke import task
  from ._config import ROOT_DIR
label_desc: Use image node_id 7 for calling a global function with example usage: black_wrapper(writeback) without return types