code: def extract_metadata_from_app(app: "LightningApp") -> List:
      metadata = {
          flow.name: component_to_metadata(flow) for flow in app.flows
      }
      metadata.update(
          {work.name: component_to_metadata(work) for work in app.works}
      )
      return [metadata[key] for key in sorted(metadata.keys())]
  
imports: import inspect
  import os
  import sys
  import traceback
  import types
  from contextlib import contextmanager
  from copy import copy
  from typing import TYPE_CHECKING, Any, Dict, List, Tuple, Type, Union
  from lightning.app.utilities.exceptions import MisconfigurationException
  from lightning.app.utilities.app_helpers import Logger, _mock_missing_imports
label_desc: Use image node_id 13 for calling a global function with example usage: extract_metadata_from_app(app) and returns: unknown