def __init__(
        self,
        api_key: Optional[str] = None,
        base_url: Optional[str] = None,
        spans_log_path: Optional[str] = None,
    ):
        """
        Initialize the MorphCloud execution client.

        Args:
            api_key: Optional API key for MorphCloud. If not provided, will use MORPH_API_KEY env var.
            base_url: Optional base URL for MorphCloud API. If not provided, will use default.
            spans_log_path: Path to log API call spans to. Defaults to 'logs/morph_api_spans.jsonl'.
        """

        self.client = MorphCloudClient(api_key=api_key, base_url=base_url)
        self._snapshot_lock = asyncio.Lock()

        Initialize the MorphCloud execution client.

        Args:
            api_key: Optional API key for MorphCloud. If not provided, will use MORPH_API_KEY env var.
            base_url: Optional base URL for MorphCloud API. If not provided, will use default.
            spans_log_path: Path to log API call spans to. Defaults to 'logs/morph_api_spans.jsonl'.
        
src/open_r1/utils/competitive_programming/morph_client.py