<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _metadata_is_invalid(cls, fact):
 """Determines if the fact is not well formed. """

        return any(isinstance(token, URIRef) and ' ' in token
                   for token in fact)