def check_if_pinecone_environment_exists(
    environment: str,
    api_key: str,
    credential = None):
    """_summary_

    Args:
        account_name (str): _description_
        database_name (str): _description_
        subscription_id (str): _description_
        resource_group (str): _description_
        credential: Azure credential to use for getting acs instance
    """
    if credential is None:
        raise ValueError("credential cannot be None")
    try:
        pinecone.init(api_key=api_key, environment=environment)
    except:
        raise BaseException("Invalid env or key")
_summary_

    Args:
        account_name (str): _description_
        database_name (str): _description_
        subscription_id (str): _description_
        resource_group (str): _description_
        credential: Azure credential to use for getting acs instance
    
scripts/pinecone_data_preparation.py