code: def drop_metadata(nb: nbf.notebooknode.NotebookNode) -> None:
      """Replaces notebook and cells metadata with empty dicts."""
      nb["metadata"] = dict()
      for i in range(len(nb["cells"])):
          nb["cells"][i]["metadata"] = dict()
  
imports: import argparse
  import logging
  from pathlib import Path
label_desc: Use image node_id 2 for calling a global function with example usage: drop_metadata(nb) without return types