docstr: Process the artificats returned by the API
  
  Args:
      artifacts :Artifact returned by the API
  
  Returns:
      The saved image paths
docstr_tok: ["Process","the","artificats","returned","by","the","API","Args",":","artifacts",":","Artifact","returned","by","the","API","Returns",":","The","saved","image","paths"]
code: def _process_artifacts(self, artifacts):
      """Process the artificats returned by the API
  
      Args:
          artifacts :Artifact returned by the API
  
      Returns:
          The saved image paths
      """
      saved_image_paths = []
      for resp in artifacts:
          for artifact in resp.artifacts:
              if artifact.finish_reason == generation.FILTER:
                  saved_image_paths.append(
                      "Your request activated the API's safety filters \
                          and could not be processed. Please modify the prompt and try again."
                  )
              if artifact.type == generation.ARTIFACT_IMAGE:
                  saved_image_paths.append(self.save_image(artifact))
      return saved_image_paths
  
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 3 for calling the StabilityAPIClient obj's underlying member method code with example usage: obj._process_artifacts(artifacts) and returns: saved_image_paths