| Write python code to Create a file type validator using magic bytes using python-magic. accepts file path; reads magic bytes from file header; validates file type; returns type and validation result. Structure the project as: src/, utils/type_validator.py, validators/path_validator.py. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready. |