async def METHOD_NAME():
    sample = RecognizeCustomFormsSampleAsync()
    model_id = None
    if os.getenv("CONTAINER_SAS_URL_V2"):
        from azure.core.credentials import AzureKeyCredential
        from azure.ai.formrecognizer.aio import FormTrainingClient
        endpoint = os.getenv("AZURE_FORM_RECOGNIZER_ENDPOINT")
        key = os.getenv("AZURE_FORM_RECOGNIZER_KEY")
        if not endpoint or not key:
            raise ValueError("Please provide endpoint and API key to run the samples.")
        form_training_client = FormTrainingClient(
            endpoint=endpoint, credential=AzureKeyCredential(key)
        )
        async with form_training_client:
            container_sas_url = os.getenv("CONTAINER_SAS_URL_V2")
            if container_sas_url is not None:
                model = await (await form_training_client.begin_training(
                    container_sas_url, use_training_labels=True)).result()
                model_id = model.model_id
    await sample.recognize_custom_forms(model_id)