code: def get_extensions(*, enabled):
      try:
  
          def to_json(x: extensions.Extension):
              return {
                  "name": x.name,
                  "path": x.path,
                  "version": x.version,
                  "branch": x.branch,
                  "remote": x.remote,
              }
  
          return [
              to_json(x)
              for x in extensions.extensions
              if not x.is_builtin and x.enabled == enabled
          ]
      except Exception as e:
          return str(e)
  
file_path: stable-diffusion-webui/modules/sysinfo.py
imports: import json
  import os
  import sys
  import platform
  import hashlib
  import pkg_resources
  import psutil
  import re
  import launch
  from modules import paths_internal, timer, shared, extensions, errors
label_desc: Use image node_id 8 for calling a global function with example usage: get_extensions() and returns: unknown, dict, str