docs: def step_command_output_should_contain_log_records_from_categories(context):
      """
      Verifies that the command output contains the specified log records
      (in any order).
  
      .. code-block: gherkin
  
          Given I define a log record schema:
              | category | level | message |
              | root     | ERROR | __LOG_MESSAGE__ |
          Then the command output should contain log records from categories:
              | category |
              | bar      |
      """
      assert context.table, "REQUIRE: context.table"
      context.table.require_column("category")
      record_schema = context.log_record_row_schema
      LogRecordTable.annotate_with_row_schema(context.table, record_schema)
      step_command_output_should_contain_log_records(context)
      context.table.remove_columns(["level", "message"])