code: def from_dict(d):
      """Create notebook node(s) from a value."""
      if isinstance(d, dict):
          newd = NotebookNode()
          for k, v in d.items():
              newd[k] = from_dict(v)
          return newd
      if isinstance(d, (tuple, list)):
          return [from_dict(i) for i in d]
      return d
  
file_path: nbformat/nbformat/v2/nbbase.py
imports: from __future__ import annotations
  from nbformat._struct import Struct
label_desc: Use image node_id 1 for calling a global function with example usage: from_dict(d) and returns: d, newd, unknown