code: def test_rest_exception_error_code_and_no_message():
      exc = RestException(
          {
              "error_code": ErrorCode.Name(RESOURCE_DOES_NOT_EXIST),
              "messages": "something important.",
          }
      )
      assert "something important." in str(exc)
      assert "RESOURCE_DOES_NOT_EXIST" in str(exc)
      json.loads(exc.serialize_as_json())
  
imports: import json
  from mlflow.exceptions import ExecutionException, RestException
  from mlflow.protos.databricks_pb2 import RESOURCE_DOES_NOT_EXIST, ErrorCode
label_desc: Use image node_id 5 for calling a global function with example usage: test_rest_exception_error_code_and_no_message() without return types