def _get_api_key(self, api_name: str):
        """
        Get API keys.

        Args:
            api_name (str): API service name

        """
        api_key = self.api_keys.get(api_name)
        if not api_key:
            raise ValueError(
                f"API key is required for {api_name} service. Please get your API key from measurespace.io/pricing."
            )

        return api_key

        Get API keys.

        Args:
            api_name (str): API service name

        
llama-index-integrations/tools/llama-index-tools-measurespace/llama_index/tools/measurespace/base.py