code: def setup(app):
      # Generate page redirects
      app.add_config_value("redirects_file", "redirects", "env")
      app.connect("builder-inited", generate_redirects)
  
      # Custom directives
      app.add_directive("custombutton", CustomButtonDirective)
      app.add_directive("customcalloutitem", CustomCalloutItemDirective)
      app.add_directive("customcarditem", CustomCardItemDirective)
      app.add_directive("customimagelink", CustomImageLinkDirective)
  
imports: import os
  import re
  import sys
  from custom_directives import CustomButtonDirective, CustomCalloutItemDirective, CustomCardItemDirective, CustomImageLinkDirective
  from redirects import generate_redirects
  import fiftyone.constants
label_desc: Use image node_id 1 for calling a global function with example usage: setup(app) without return types