docstr: Save the binary image in the artifact to the local directory
  
  Args:
      artifact: Artifact returned by the API
  
  Returns:
      The local image path.
docstr_tok: ["Save","the","binary","image","in","the","artifact","to","the","local","directory","Args",":","artifact",":","Artifact","returned","by","the","API","Returns",":","The","local","image","path","."]
code: def save_image(self, artifact):
      """Save the binary image in the artifact to the local directory
  
      Args:
          artifact: Artifact returned by the API
  
      Returns:
          The local image path.
      """
      img = Image.open(io.BytesIO(artifact.binary))
      path = self.save_dir + str(artifact.seed) + ".png"
      img.save(path)
      return path
  
file_path: mindsdb/mindsdb/integrations/handlers/stabilityai_handler/stabilityai.py
imports: from stability_sdk import client
  from stability_sdk.client import generation
  from PIL import Image
  import io
  import requests
label_desc: Use image node_id 2 for calling the StabilityAPIClient obj's underlying member method code with example usage: obj.save_image(artifact) and returns: path