code: def decode_image(raw_image):
      if not is_vision_available():
          raise ImportError(
              "This tool returned an image but Pillow is not installed. Please install it (`pip install Pillow`)."
          )
  
      from PIL import Image
  
      b64 = base64.b64decode(raw_image)
      _bytes = io.BytesIO(b64)
      return Image.open(_bytes)
  
imports: import base64
  import importlib
  import inspect
  import io
  import json
  import os
  import tempfile
  from typing import Any, Dict, List, Optional, Union
  from huggingface_hub import create_repo, hf_hub_download, metadata_update, upload_folder
  from huggingface_hub.utils import RepositoryNotFoundError, build_hf_headers, get_session
  from ..dynamic_module_utils import custom_object_save, get_class_from_dynamic_module, get_imports
  from ..image_utils import is_pil_image
  from ..models.auto import AutoProcessor
  from ..utils import CONFIG_NAME, cached_file, is_accelerate_available, is_torch_available, is_vision_available, logging
  from .agent_types import handle_agent_inputs, handle_agent_outputs
label_desc: Use image node_id 3 for calling the EndpointClient obj's underlying member method code with example usage: obj.decode_image(raw_image) and returns: Image