code: def abort(error):
      print(f"*WARNING* Examples Revamp not generated: \n\n{error}")
      exit()
  
file_path: dipy/doc/sphinxext/prepare_gallery.py
imports: import fnmatch
  import sys
  import os
  import shutil
  from os.path import join
  from dataclasses import dataclass, field
  from pathlib import Path
  from sphinx.util import logging
label_desc: Use image node_id 1 for calling a global function with example usage: abort(error) without return types