code: def _check_metrics(self, metrics, params={}, allowed_error={}):
      self.assertAlmostEquals(
          metrics["rmse"],
          allowed_error["rmse"] if "rmse" in allowed_error else 0,
          delta=1e-2,
          msg="Failed case %s. Results %s" % (params, metrics),
      )
      self.assertAlmostEquals(
          metrics["max_error"],
          allowed_error["max_error"]
          if "max_error" in allowed_error
          else 0,
          delta=1e-2,
          msg="Failed case %s. Results %s" % (params, metrics),
      )
  
imports: import unittest
  import pandas
  import itertools
  import pytest
  from coremltools._deps import _HAS_SKLEARN, _HAS_XGBOOST
  from coremltools.models.utils import evaluate_regressor, _macos_version, _is_macos
label_desc: Use image node_id 2 for calling the XGboostRegressorBostonHousingNumericTest obj's underlying member method code with example usage: obj._check_metrics(metrics, params, allowed_error) without return types