code: def component_callbacks(self, app):
      @app.callback(
          Output("residuals-graph-" + self.name, "figure"),
          [
              Input("residuals-pred-or-actual-" + self.name, "value"),
              Input("residuals-type-" + self.name, "value"),
          ],
      )
      def update_residuals_graph(pred_or_actual, residuals):
          vs_actual = pred_or_actual == "vs_actual"
          return self.explainer.plot_residuals(
              vs_actual=vs_actual,
              residuals=residuals,
              round=self.round,
              plot_sample=self.plot_sample,
          )
  
imports: import numpy
  import pandas
  import dash
  from dash import html, dcc, Input, Output, State
  from dash.exceptions import PreventUpdate
  import dash_bootstrap_components
  from ..dashboard_methods import *
  from ..None import to_html
label_desc: Use image node_id 4 for calling the ResidualsComponent obj's underlying member method code with example usage: obj.component_callbacks(app) and returns: self