code: def add_component_shortcuts():
      for component in docs["component"]:
          if not getattr(
              component["class"], "allow_string_shortcut", True
          ):
              continue
          component["string_shortcuts"] = [
              (
                  component["class"].__name__,
                  component["name"].lower(),
                  "Uses default values",
              )
          ]
          for subcls in component["class"].__subclasses__():
              if getattr(subcls, "is_template", False):
                  _, tags, _ = document_cls(subcls)
                  component["string_shortcuts"].append(
                      (
                          subcls.__name__,
                          subcls.__name__.lower(),
                          "Uses " + tags.get("sets", "default values"),
                      )
                  )
  
file_path: gradio/js/_website/generate_jsons/src/docs/__init__.py
imports: import html
  import json
  import os
  from gradio_client.documentation import document_cls, generate_documentation
  import gradio
  from ..guides import guides
  import requests
label_desc: Use image node_id 1 for calling a global function with example usage: add_component_shortcuts() without return types