def METHOD_NAME(schema_obj):
    """
    Test whether expected columns are present and the requirement level is
    applied correctly.
    This should be robust with respect to schema format.
    """
    # mri.MRISpatialEncoding selected for having some level and description addenda
    rendered_table = tables.make_columns_table(
        schema_obj,
        "modality_agnostic.Participants",
    ).split("\n")
    assert rendered_table[0].startswith("| **Column name**")
    assert rendered_table[1].startswith("|----------------")
    fields = schema_obj.rules.tabular_data.modality_agnostic.Participants.columns
    assert len(rendered_table) == len(fields) + 3  # header + orientation + add. cols. row
    for field, render_row in zip(fields, rendered_table[2:-1]):
        assert render_row.startswith(f"| [{field}](")
        spec = fields[field]
        if isinstance(spec, str):
            level = spec
            level_addendum = ""
            description_addendum = ""
        else:
            level = spec["level"]
            level_addendum = spec.get("level_addendum", "").replace("required", "REQUIRED")
            description_addendum = spec.get("description_addendum", "")
        assert level.upper() in render_row
        assert level_addendum.split("\n")[0] in render_row
        assert description_addendum.split("\n")[0] in render_row