code: def create_lora_json(obj: network.NetworkOnDisk):
      return {
          "name": obj.name,
          "alias": obj.alias,
          "path": obj.filename,
          "metadata": obj.metadata,
      }
  
file_path: stable-diffusion-webui/extensions-builtin/Lora/scripts/lora_script.py
imports: import re
  import gradio
  from fastapi import FastAPI
  import network
  import networks
  import lora
  import lora_patches
  import extra_networks_lora
  import ui_extra_networks_lora
  from modules import script_callbacks, ui_extra_networks, extra_networks, shared
label_desc: Use image node_id 3 for calling a global function with example usage: create_lora_json(obj) and returns: dict