code: def _on_change_params(self, change):
      for param_name, value in change.new.items():
          setattr(self.params, param_name, value)
  
imports: import json
  import anywidget
  import traitlets
  import pathlib
  from typing import Any, Set, Optional
  import altair
  from altair.utils._vegafusion_data import using_vegafusion, compile_to_vegafusion_chart_state
  from altair import TopLevelSpec
  from altair.utils.selection import IndexSelection, PointSelection, IntervalSelection
label_desc: Use image node_id 5 for calling the JupyterChart obj's underlying member method code with example usage: obj._on_change_params(change) without return types