code: def test_backend_error():
      try:
          h2o.api("GET /3/Foo", data=dict(bar="baz"))
          assert False, "API call should have failed"
      except H2OResponseError as e:
          backend_err = e.args[0]
          assert isinstance(backend_err, H2OErrorV3)
          assert backend_err.endpoint == "GET /3/Foo"
          assert backend_err.payload == (
              None,
              None,
              None,
              dict(bar="baz"),
          )  # yeah! because on GET, data becomes params and turns into None, this is so confusing!
          assert backend_err.http_status == 404
          assert isinstance(backend_err.stacktrace, list)
          assert len(backend_err.stacktrace) > 10
          assert (
              backend_err.stacktrace[0]
              == "water.exceptions.H2ONotFoundArgumentException: Resource /3/Foo not found"
          )
          assert backend_err.msg == "Resource /3/Foo not found"
          assert backend_err.dev_msg == backend_err.msg
          assert backend_err.exception_msg == backend_err.msg
          assert (
              backend_err.exception_type
              == "water.exceptions.H2ONotFoundArgumentException"
          )
          assert backend_err.error_url == "Resource /3/Foo"
          assert backend_err.timestamp > 0
          assert len(backend_err.values) == 0
  
imports: import sys
  import h2o
  from h2o.estimators import H2OGradientBoostingEstimator
  from h2o.exceptions import H2OResponseError
  from h2o.schemas import H2OErrorV3, H2OModelBuilderErrorV3
  from tests import pyunit_utils
label_desc: Use image node_id 1 for calling a global function with example usage: test_backend_error() without return types