Implement the PrimaryPlaceOfPerformanceForeignLocationDescription validation functionality for the DetachedAwardFinancialAssistance records in the /app/ directory. The validation should enforce the following rules:
Validation Requirement: For records with record_type of 2 and where place_of_perform_country_c is not 'USA' (case insensitive), the field place_of_performance_forei must be populated (i.e., it cannot be None, an empty string, or whitespace).
Behavior:
If place_of_perform_country_c is 'USA', the value of place_of_performance_forei should not trigger any errors, regardless of its content.
If place_of_perform_country_c is not 'USA' and place_of_performance_forei is empty, None, or consists only of whitespace, an error should be registered for that record.
Test Cases: Ensure that the implementation satisfies the conditions outlined in the provided test code:
The test_column_headers function should assert that the necessary columns are present in the query results.
The test_success function should validate that no errors are raised when records meet the criteria.
The test_failure function should confirm that errors are raised appropriately when records do not meet the requirements.
Deliver the solution such that it integrates seamlessly with the existing unit tests, and ensure to include necessary imports in your implementation as needed.