code: def print_library(
      library: str, output_dir: pathlib.Path, verbose=False
  ):
      # Create a directory for the API reference
      shutil.rmtree(output_dir, ignore_errors=True)
      os.makedirs(output_dir, exist_ok=True)
      with open(output_dir.joinpath(".pages"), "w") as f:
          f.write(
              "title: API reference 🍱\narrange:\n  - overview.md\n  - ...\n"
          )
  
      overview = open(output_dir.joinpath("overview.md"), "w")
      print(h1("Overview"), file=overview)
  
      for mod_name, mod in inspect.getmembers(
          importlib.import_module(f"{library}.api"), inspect.ismodule
      ):
          if mod_name.startswith("_") or mod_name == "api":
              continue
          if verbose:
              print(mod_name)
          print_module(
              mod, path=output_dir, overview=overview, verbose=verbose
          )
  
imports: import argparse
  import collections
  import doctest
  import functools
  import importlib
  import inspect
  import os
  import pathlib
  import re
  import shutil
  from numpydoc.docscrape import ClassDoc, FunctionDoc
label_desc: Use image node_id 15 for calling a global function with example usage: print_library(library, output_dir, verbose) without return types