code: def api_functions() -> List[str]:
      # Exclude typing.cast
      altair_api_functions = [
          obj_name
          for obj_name in iter_objects(alt.api, restrict_to_type=types.FunctionType)  # type: ignore[attr-defined]
          if obj_name != "cast"
      ]
      return sorted(altair_api_functions)
  
file_path: altair/tools/generate_api_docs.py
imports: import sys
  import types
  from os.path import abspath, dirname, join
  from typing import Final, Optional, Iterator, List
  from types import ModuleType
  import altair
label_desc: Use image node_id 4 for calling a global function with example usage: api_functions() and returns: sorted