code: def decode_callables(obj):
      """replaces all dict-encoded callables in obj with the appropriate function
  
      Works recursively through sub-list and sub-dicts"""
      if isinstance(obj, dict) and "__callable__" in obj:
          return getattr(
              import_module(obj["__callable__"]["module"]),
              obj["__callable__"]["name"],
          )
      if isinstance(obj, dict):
          return {k: decode_callables(v) for k, v in obj.items()}
      elif isinstance(obj, list):
          return [decode_callables(o) for o in obj]
      return obj
  
imports: import sys
  from abc import ABC
  import inspect
  import types
  from typing import Union, List, Tuple
  from pathlib import Path
  from importlib import import_module
  import socket
  import dash
  from dash import html, dcc, Input, Output, State
  from dash.exceptions import PreventUpdate
  import dash_bootstrap_components
  from .None import to_html
label_desc: Use image node_id 6 for calling a global function with example usage: decode_callables(obj) and returns: obj, getattr, unknown, unknown