def METHOD_NAME(self, custom_model_id):
    from azure.core.credentials import AzureKeyCredential
    from azure.ai.formrecognizer import FormRecognizerClient, RecognizedForm
    endpoint = os.environ["AZURE_FORM_RECOGNIZER_ENDPOINT"]
    key = os.environ["AZURE_FORM_RECOGNIZER_KEY"]
    model_id_fixed_rows_table = os.getenv("MODEL_ID_FIXED_ROW_TABLES", custom_model_id)
    form_recognizer_client = FormRecognizerClient(
        endpoint=endpoint, credential=AzureKeyCredential(key)
    )
    path_to_sample_forms = os.path.abspath(os.path.join(os.path.abspath(__file__),
                                                        "..", "..", "./sample_forms/forms/label_table_fixed_rows1.pdf"))
    with open(path_to_sample_forms, "rb") as f:
        form = f.read()
    poller = form_recognizer_client.begin_recognize_custom_forms(
        model_id=model_id_fixed_rows_table, form=form
    )
    result: list[RecognizedForm] = poller.result()
    print("\n--------Recognizing labeled table with fixed rows--------\n")
    for recognized_form in result:
        for name, field in recognized_form.fields.items():
            # substitute "table" for the label given to the table tag during training
            # (if different than sample training docs)
            if name == "table":
                for row_name, column in field.value.items():
                    print("Row '{}' has columns:".format(row_name))
                    for column_name, column_value in column.value.items():
                        print("...Column '{}' with value '{}' and a confidence score of {}".format(
                            column_name, column_value.value, column_value.confidence
                        ))
            else:  # non-table tagged FormField
                print("...Field '{}' has value '{}' with a confidence score of {}".format(
                    name,
                    field.value,
                    field.confidence
                ))