code: def test_generation_error():
      payload = {"error_type": "generation", "error": "test"}
      assert isinstance(parse_error(400, payload), GenerationError)
  
file_path: text-generation-inference/clients/python/tests/test_errors.py
imports: from text_generation.errors import parse_error, GenerationError, IncompleteGenerationError, OverloadedError, ValidationError, BadRequestError, ShardNotReadyError, ShardTimeoutError, NotFoundError, RateLimitExceededError, UnknownError
label_desc: Use image node_id 1 for calling a global function with example usage: test_generation_error() without return types