class_docstr: Test Class for LeonardoAI Integration Testing.
class_docstr_tok: ["Test","Class","for","LeonardoAI","Integration","Testing","."]
docstr: Retrieve Leonardo API key from environment variables.
docstr_tok: ["Retrieve","Leonardo","API","key","from","environment","variables","."]
code: def get_api_key():
      """Retrieve Leonardo API key from environment variables."""
      return os.environ.get("LEONARDO_API_KEY")
  
file_path: mindsdb/tests/unit/ml_handlers/test_leonardo_ai.py
imports: import os
  import pytest
  import pandas
  from unittest.mock import patch
  from .base_ml_test import BaseMLAPITest
label_desc: Use image node_id 1 for calling the TestLeonardoAI obj's underlying member method code with example usage: obj.get_api_key() and returns: os