class_docstr: A dict-like node with attribute-access
docstr: A dict-like update method based on CPython's MutableMapping `update`
  method.
docstr_tok: ["A","dict-like","update","method","based","on","CPython","'s","MutableMapping","`","update","`","method","."]
code: def update(self, *args, **kwargs):
      """
      A dict-like update method based on CPython's MutableMapping `update`
      method.
      """
      if len(args) > 1:
          raise TypeError(
              "update expected at most 1 arguments, got %d" % len(args)
          )
      if args:
          other = args[0]
          if isinstance(other, Mapping):  # noqa: SIM114
              for key in other:
                  self[key] = other[key]
          elif hasattr(other, "keys"):
              for key in other:
                  self[key] = other[key]
          else:
              for key, value in other:
                  self[key] = value
      for key, value in kwargs.items():
          self[key] = value
  
file_path: nbformat/nbformat/notebooknode.py
imports: from __future__ import annotations
  from collections.abc import Mapping
  from ._struct import Struct
label_desc: Use image node_id 2 for calling the NotebookNode obj's underlying member method code with example usage: obj.update() without return types