code: def update_data(self, data: tp.Dict) -> None:
      # deepcopy is crucial here
      self.data = deepcopy(data)
  
file_path: catboost/catboost/python-package/catboost/widget/metrics_plotter.py
imports: import time
  import logging
  import typing
  from IPython.display import display
  from copy import deepcopy
  from typing import List, Optional, Any, Union
  from .ipythonwidget import MetricWidget
label_desc: Use image node_id 2 for calling the MetricsWidget obj's underlying member method code with example usage: obj.update_data(data) without return types