code: def generate_classes(namespace, metadata_path="lib/metadata.json"):
      """Load React component metadata into a format Dash can parse, then create
      Python class files.
  
      Usage: generate_classes()
  
      Keyword arguments:
      namespace -- name of the generated Python package (also output dir)
  
      metadata_path -- a path to a JSON file created by
      [`react-docgen`](https://github.com/reactjs/react-docgen).
  
      Returns:
      """
  
      data = _get_metadata(metadata_path)
      imports_path = os.path.join(namespace, "_imports_.py")
  
      # Make sure the file doesn't exist, as we use append write
      if os.path.exists(imports_path):
          os.remove(imports_path)
  
      components = generate_classes_files(
          namespace, data, generate_class_file
      )
  
      # Add the __all__ value so we can import * from _imports_
      generate_imports(namespace, components)
  
file_path: dash/dash/development/component_loader.py
imports: import collections
  import json
  import os
  from ._py_components_generation import generate_class_file, generate_imports, generate_classes_files, generate_class
  from .base_component import ComponentRegistry
label_desc: Use image node_id 3 for calling a global function with example usage: generate_classes(namespace, metadata_path) without return types