def validate_content(*objs):
from .main import Collection, Module<EOL>validator = {<EOL>Collection: cnxml.validate_collxml,<EOL>Module: cnxml.validate_cnxml,<EOL>}[type(objs[<NUM_LIT:0>])]<EOL>return validator(*[obj.file for obj in objs])<EOL>
Runs the correct validator for given `obj`ects. Assumes all same type