code: def main(args):
      # Get directories relative to test dir
      test_dirs = list(map(relpath, args.test_dirs))
  
      # Validate directories and filter empty ones
      test_dirs = filter(validate, test_dirs)
  
      # If list, simply list what is available and exit
      if args.list:
          output = [list_images(path) for path in test_dirs]
          print("\n".join(output))
          return
  
      # If clear, clear the baseline and actual directories
      if args.clear:
          for path in test_dirs:
              clear(path)
          return
  
      # Move images that aren't diffs from actual to baseline
      for path in test_dirs:
          sync(path)
  
file_path: yellowbrick/tests/images.py
imports: import os
  import glob
  import shutil
  import argparse
label_desc: Use image node_id 6 for calling a global function with example usage: main(args) without return types