code: def _update(
      state: dict, new=None  # New values to update `state` dict
  ):
      if new is None:
          return state
      if isinstance(new, dict):
          state.update(new)
      return state
  
imports: from __future__ import annotations
  from .torch_basics import *
label_desc: Use image node_id 1 for calling a global function with example usage: _update(state, new) and returns: state, state