code: def _update_history(self, tmp_results, history, conv):
      history["params"].append(tmp_results.params)
      history["scale"].append(tmp_results.scale)
      if conv == "dev":
          history["deviance"].append(self.deviance(tmp_results))
      elif conv == "sresid":
          history["sresid"].append(
              tmp_results.resid / tmp_results.scale
          )
      elif conv == "weights":
          history["weights"].append(tmp_results.model.weights)
      return history
  
imports: import numpy
  import scipy.stats
  import statsmodels.base.model
  import statsmodels.base.wrapper
  import statsmodels.regression._tools
  import statsmodels.regression.linear_model
  import statsmodels.robust.norms
  import statsmodels.robust.scale
  from statsmodels.tools.decorators import cache_readonly
  from statsmodels.tools.sm_exceptions import ConvergenceWarning
label_desc: Use image node_id 8 for calling the RLM obj's underlying member method code with example usage: obj._update_history(tmp_results, history, conv) and returns: history